We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 224eb6d + ba6e94e commit 8eb9e46Copy full SHA for 8eb9e46
.github/workflows/bootstrap.yaml
@@ -91,9 +91,10 @@ jobs:
91
# Only updates file if it has changed
92
selective_file_copy() {
93
# Receives a single file path as argument
94
- SHA_SRC=$(sha1sum "$DEVOPS_DIR"/"$1" | awk '{print $1}')
95
- SHA_DST=$(sha1sum "$1" 2>/dev/null | awk '{print $1}' || :)
96
- if [ "$SHA_SRC" != "$SHA_DST" ]; then
+ # SHA_SRC=$(sha1sum "$DEVOPS_DIR/$1" | awk '{print $1}')
+ # SHA_DST=$(sha1sum "$1" 2>/dev/null | awk '{print $1}' || :)
+ # if [ "$SHA_SRC" != "$SHA_DST" ]; then
97
+ if ! (cmp "$DEVOPS_DIR/$1" "$1"); then
98
echo "Copying: $1"
99
cp "$DEVOPS_DIR/$1" "$1"
100
git add "$1"
0 commit comments