qemush : d'abord vérifier que le fichier existe avant le chmod
This commit is contained in:
parent
0b2c90d5ff
commit
c16666a3f9
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue