Skip to content

Commit 3c8d1b9

Browse files
committed
updated sync_ci_to_adjacent_repos.sh
1 parent c1d312d commit 3c8d1b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: cicd/sync_ci_to_adjacent_repos.sh

+6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ while read -r repo dir; do
7878
continue
7979
fi
8080
perl -pe "s/(?<!- )(devops-)*bash-tools/$repo/i" "$filename" > "$tmpfile"
81+
if is_mac; then
82+
octal_perms="$(stat -f "%A" "$filename")"
83+
else
84+
octal_perms="$(stat -c "%a" "$filename")"
85+
fi
86+
chmod "$octal_perms" "$tmpfile"
8187
tmpfile_checksum="$(cksum "$tmpfile" | awk '{print $1}')"
8288
target_checksum="$(cksum "$target" | awk '{print $1}')"
8389
if [ "$tmpfile_checksum" = "$target_checksum" ]; then

0 commit comments

Comments
 (0)