forked from Shinonome/dots-hyprland
launch_first_available.sh should skip empty cmds
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
for cmd in "$@"; do
|
for cmd in "$@"; do
|
||||||
|
[[ -z "$cmd" ]] && continue
|
||||||
eval "command -v ${cmd%% *}" >/dev/null 2>&1 || continue
|
eval "command -v ${cmd%% *}" >/dev/null 2>&1 || continue
|
||||||
eval "$cmd" &
|
eval "$cmd" &
|
||||||
exit
|
exit
|
||||||
done
|
done
|
||||||
exit 1
|
|
||||||
|
|||||||
Reference in New Issue
Block a user