We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40d5bd0 + b6e45d7 commit 9411674Copy full SHA for 9411674
install_scripts.sh
@@ -80,7 +80,8 @@ compare_and_copy() {
80
else
81
echo "File has changed in the PR"
82
fi
83
- 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.
84
+ (umask 022 && cat "$source_file" > "$destination_file")
85
echo "File $source_file copied to $destination_file"
86
87
case $? in
0 commit comments