From 0506917b87c2edc1689793bf31b4af41e8cb5415 Mon Sep 17 00:00:00 2001 From: Souyama Date: Thu, 7 Aug 2025 20:48:11 +0530 Subject: [PATCH] launch_first_available.sh should skip empty cmds --- .config/hypr/hyprland/scripts/launch_first_available.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/hypr/hyprland/scripts/launch_first_available.sh b/.config/hypr/hyprland/scripts/launch_first_available.sh index 499947a9..31dd23a5 100755 --- a/.config/hypr/hyprland/scripts/launch_first_available.sh +++ b/.config/hypr/hyprland/scripts/launch_first_available.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash for cmd in "$@"; do + [[ -z "$cmd" ]] && continue eval "command -v ${cmd%% *}" >/dev/null 2>&1 || continue eval "$cmd" & exit done -exit 1