Skip to content

Commit 78d8d7a

Browse files
committed
use umask + cat approach
1 parent d392ae0 commit 78d8d7a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

install_scripts.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ compare_and_copy() {
8080
else
8181
echo "File has changed in the PR"
8282
fi
83-
cp --preserve=mode "$source_file" "$destination_file"
83+
#cp --preserve=mode "$source_file" "$destination_file"
84+
# Use cat to retain existing permissions, set umask to world readable in case the target file does not yet exist.
85+
(umask 022 && cat "$source_file" "$destination_file")
8486
echo "File $source_file copied to $destination_file"
8587
else
8688
case $? in

0 commit comments

Comments
 (0)