qemush : fonction add, garde contre un premier argument absent

This commit is contained in:
Ahurac 2024-03-24 23:29:50 +01:00
parent c86c7a2e01
commit 8dfc9bdf8c

View file

@ -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"