qemush : d'abord vérifier que le fichier existe avant le chmod

This commit is contained in:
Hippolyte Chauvin 2023-12-04 22:56:16 +01:00
parent 0b2c90d5ff
commit c16666a3f9

View file

@ -93,7 +93,7 @@ public_diskls() {
public_edit() { public_edit() {
local file="${bin}/${1}" local file="${bin}/${1}"
"$EDITOR" "$file" "$EDITOR" "$file"
exec chmod u+x "$file" [ -f "$file" ] && exec chmod u+x "$file"
} }
public_rm() { public_rm() {