From: Siraaj Khandkar Date: Fri, 22 Jul 2022 17:28:00 +0000 (-0400) Subject: Fix test of scripts dir existence X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=57081bde54b513a4a884f2144fe28a96d275474f Fix test of scripts dir existence --- diff --git a/home/.xlaunch b/home/.xlaunch index 213e0b2..0cf046b 100755 --- a/home/.xlaunch +++ b/home/.xlaunch @@ -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 }