From c16666a3f99464dab48bf79b1b8c4281bfb7566a Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Mon, 4 Dec 2023 22:56:16 +0100 Subject: [PATCH] =?UTF-8?q?qemush=20:=20d'abord=20v=C3=A9rifier=20que=20le?= =?UTF-8?q?=20fichier=20existe=20avant=20le=20chmod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/qemush | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/qemush b/bin/qemush index 92eb503..8c11e7c 100755 --- a/bin/qemush +++ b/bin/qemush @@ -93,7 +93,7 @@ public_diskls() { public_edit() { local file="${bin}/${1}" "$EDITOR" "$file" - exec chmod u+x "$file" + [ -f "$file" ] && exec chmod u+x "$file" } public_rm() {