From 997c7974a10b41b3b9f34fd7f8e2bc5ba9c3e070 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Sun, 21 Jan 2024 00:27:36 +0100 Subject: [PATCH] qemush : variable locale en plusieurs lignes pour ne pas masquer la valeur de retour de la substitution shell --- bin/qemush | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/qemush b/bin/qemush index ff5f4c3..135db5f 100755 --- a/bin/qemush +++ b/bin/qemush @@ -153,7 +153,9 @@ public_cat() { public_add() { trap return EXIT set -e - local name="${2:-$(basename "$1")}" + + local name + name="${2:-$(basename "$1")}" cp -v -i -- "$1" "${bin}/${2}" chmod 740 "${bin}/${name}"