check and create run_dir

This commit is contained in:
LinuxSquare 2025-04-25 21:12:36 +02:00
parent 76ad0fb812
commit 2349d19649

4
nsm
View file

@ -72,6 +72,10 @@ while true; do
shift shift
done done
if ! test -d "$RUN_DIR"; then
mkdir -p "$RUN_DIR"
fi
if ! find "$ROOTPATH/functions" -iname "$COMMAND" &> /dev/null; then if ! find "$ROOTPATH/functions" -iname "$COMMAND" &> /dev/null; then
log e "'$COMMAND' is not a viable function!" log e "'$COMMAND' is not a viable function!"
exit 1 exit 1