Skip to content

Commit

Permalink
show error message if no program name is given
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Oct 31, 2020
1 parent eec9644 commit 1e1a493
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions usr/bin/sandbox-app-launcher
Expand Up @@ -5,6 +5,11 @@

set -e

if [ $# -eq 0 ]; then
echo "Usage: program [OPTIONS]" >&2
exit 1
fi

app_name="${1}"
shift 1
: ${app_path:="$(type -P "${app_name}" || true)"}
Expand Down

0 comments on commit 1e1a493

Please sign in to comment.