qemush : fonction add
, garde contre un premier argument absent
This commit is contained in:
parent
c86c7a2e01
commit
8dfc9bdf8c
1 changed files with 4 additions and 0 deletions
|
@ -151,6 +151,10 @@ public_cat() {
|
||||||
|
|
||||||
# Copy a file in entrypoints folder
|
# Copy a file in entrypoints folder
|
||||||
public_add() {
|
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
|
if [ -n "$2" ]; then
|
||||||
name="$2"
|
name="$2"
|
||||||
|
|
Loading…
Reference in a new issue