qemush : variable locale en plusieurs lignes pour ne pas masquer la valeur de retour de la substitution shell

This commit is contained in:
Ahurac 2024-01-21 00:27:36 +01:00
parent b69251bc56
commit 997c7974a1

View file

@ -153,7 +153,9 @@ public_cat() {
public_add() { public_add() {
trap return EXIT trap return EXIT
set -e set -e
local name="${2:-$(basename "$1")}"
local name
name="${2:-$(basename "$1")}"
cp -v -i -- "$1" "${bin}/${2}" cp -v -i -- "$1" "${bin}/${2}"
chmod 740 "${bin}/${name}" chmod 740 "${bin}/${name}"