Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion install_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ compare_and_copy() {
else
echo "File has changed in the PR"
fi
cp "$source_file" "$destination_file"
# Use cat to retain existing permissions, set umask to world readable in case the target file does not yet exist.
(umask 022 && cat "$source_file" > "$destination_file")
echo "File $source_file copied to $destination_file"
else
case $? in
Expand Down