From 2349d1964998ac3c8cd7b81adc2250cdda233bcd Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Fri, 25 Apr 2025 21:12:36 +0200 Subject: [PATCH] check and create run_dir --- nsm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nsm b/nsm index dd3833c..97df07f 100755 --- a/nsm +++ b/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