From c86c7a2e01a043ba7ffab6d71a793fc29d30f103 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Sun, 24 Mar 2024 23:28:52 +0100 Subject: [PATCH] =?UTF-8?q?qemush=20:=20fonction=20`add`,=20d=C3=A9placeme?= =?UTF-8?q?nt=20du=20`trap`=20apr=C3=A8s=20le=20bloc=20conditionnel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/qemush | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"