check and create run_dir
This commit is contained in:
parent
76ad0fb812
commit
2349d19649
1 changed files with 4 additions and 0 deletions
4
nsm
4
nsm
|
@ -72,6 +72,10 @@ while true; do
|
|||
shift
|
||||
done
|
||||
|
||||
if ! test -d "$RUN_DIR"; then
|
||||
mkdir -p "$RUN_DIR"
|
||||
fi
|
||||
|
||||
if ! find "$ROOTPATH/functions" -iname "$COMMAND" &> /dev/null; then
|
||||
log e "'$COMMAND' is not a viable function!"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue