mirror of
https://github.com/ThunixdotNet/tilde-launcher.git
synced 2026-01-24 05:10:18 +00:00
check empty command first
This commit is contained in:
8
tilde
8
tilde
@@ -291,13 +291,15 @@ case $1 in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
if [ -x "/tilde/bin/$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
|
help_message
|
||||||
|
exit
|
||||||
|
elif [ -x "/tilde/bin/$1" ]; then
|
||||||
prog="/tilde/bin/$1"
|
prog="/tilde/bin/$1"
|
||||||
shift
|
shift
|
||||||
exec "$prog" "$@"
|
exec "$prog" "$@"
|
||||||
else
|
else
|
||||||
[ -z "$1" ] || \
|
printf "%s not found. check %s list to see what's available\n\n" "$1" "$PROGNAME"
|
||||||
printf "%s not found. try %s list to see what's available\n" "$1" "$PROGNAME"
|
|
||||||
help_message
|
help_message
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user