Skip to content
Snippets Groups Projects
Commit 151ce5dc authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

install_module: Remove destination before copy if it is a file

This prevents overwriting executable binaries, something which
confuses the code signing logic on macOS.
parent 18ef5eee
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,9 @@ if [ -d "$FROM" ]; then
CPFLAGS="-r"
fi
if [ -f "$TO" ]; then
rm -f "$TO"
fi
cp $CPFLAGS "$FROM" "$TO"
exit $?
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