Skip to content
Snippets Groups Projects
Commit d818de18 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: createWrapper was using chmod in a way that was incompatible with macOS

parent c5e0ebae
No related branches found
No related tags found
1 merge request!12Rf/createwrapper macos
Pipeline #9460 failed
......@@ -109,5 +109,10 @@ for script in $targets; do
fi
# Preserve file permissions
chmod --reference="$sourceScript" "$targetScript"
if [[ "$OSTYPE" == "darwin"* ]]: then
perms=$(stat -f "%A" "$sourceScript")
chmod ${perms} "$targetScript"
else
chmod --reference="$sourceScript" "$targetScript"
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment