From 8dfc9bdf8c24495daf9dad10d84417f00d3d18e7 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Sun, 24 Mar 2024 23:29:50 +0100 Subject: [PATCH] qemush : fonction `add`, garde contre un premier argument absent --- bin/qemush | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/qemush b/bin/qemush index af27a66..1d6da94 100755 --- a/bin/qemush +++ b/bin/qemush @@ -151,6 +151,10 @@ public_cat() { # Copy a file in entrypoints folder public_add() { + if [ -z "$1" ]; then + perror "specify the path of a launching script you want to add" + return 1 + fi if [ -n "$2" ]; then name="$2"