qemush : variable locale en plusieurs lignes pour ne pas masquer la valeur de retour de la substitution shell
This commit is contained in:
parent
b69251bc56
commit
997c7974a1
1 changed files with 3 additions and 1 deletions
|
@ -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}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue