From 57081bde54b513a4a884f2144fe28a96d275474f Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Fri, 22 Jul 2022 13:28:00 -0400 Subject: [PATCH] Fix test of scripts dir existence --- home/.xlaunch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 2.20.1