diff --git a/bin/qemush b/bin/qemush index ca61302..af27a66 100755 --- a/bin/qemush +++ b/bin/qemush @@ -151,8 +151,6 @@ public_cat() { # Copy a file in entrypoints folder public_add() { - trap return EXIT - set -e if [ -n "$2" ]; then name="$2" @@ -161,6 +159,9 @@ public_add() { fi destination="${HOME}/launchers/${destination}" + trap return EXIT + set -e + cp -vi -- "$1" "$destination" chmod 0740 -- "$destination"