From fe029c034492cdb9256b667aae344d8383bd57fa Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:48:09 -0700 Subject: [PATCH] exit if no args --- usr/local/share/bastille/top.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/top.sh b/usr/local/share/bastille/top.sh index f3cddd9a..20a039fb 100644 --- a/usr/local/share/bastille/top.sh +++ b/usr/local/share/bastille/top.sh @@ -41,8 +41,12 @@ case "${1}" in ;; esac -TARGET="${1}" -shift +if [ $# -eq 0 ]; then + usage +else + TARGET="${1}" + shift +fi if [ "${TARGET}" = "ALL" ]; then target_all_jails