Fix test of scripts dir existence
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 22 Jul 2022 17:28:00 +0000 (13:28 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 22 Jul 2022 17:28:00 +0000 (13:28 -0400)
home/.xlaunch

index 213e0b2..0cf046b 100755 (executable)
@@ -17,11 +17,13 @@ launch_specialized() {
     # XXX dunst lazily started by dbus
     local -r scripts_dir=~/.xlaunch.d."$(hostname)"
 
-    if test -f "$scripts_dir"
+    if test -d "$scripts_dir"
     then
         for script in "$scripts_dir"/*; do
             "$script"
         done
+    else
+        printf '[error] scripts_dir not found: %s\n' "$scripts_dir" >&2
     fi
 }
 
This page took 0.040433 seconds and 4 git commands to generate.