From: Siraaj Khandkar Date: Mon, 18 Jul 2022 15:07:27 +0000 (+0000) Subject: Test if per-host scripts dir exists before trying to access it X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=658bbf0d939c60f1c94f66ce00a092cc5db74187;p=khome.git Test if per-host scripts dir exists before trying to access it --- diff --git a/home/.xlaunch b/home/.xlaunch index be3cc36..213e0b2 100755 --- a/home/.xlaunch +++ b/home/.xlaunch @@ -15,9 +15,14 @@ launch_common() { launch_specialized() { # XXX dunst lazily started by dbus - for script in ~/.xlaunch.d."$(hostname)"/*; do - "$script" - done + local -r scripts_dir=~/.xlaunch.d."$(hostname)" + + if test -f "$scripts_dir" + then + for script in "$scripts_dir"/*; do + "$script" + done + fi } launch_common