From c43a9e054ac6971e9fa0466250c672f2cd74ad49 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sat, 26 Apr 2025 20:20:05 -0600 Subject: [PATCH] restart: Exit if not only 1 arg --- usr/local/share/bastille/restart.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/local/share/bastille/restart.sh b/usr/local/share/bastille/restart.sh index b3791c3d..a6c7ca04 100644 --- a/usr/local/share/bastille/restart.sh +++ b/usr/local/share/bastille/restart.sh @@ -87,6 +87,10 @@ while [ "$#" -gt 0 ]; do esac done +if [ "$#" -ne 1 ]; then + usage +fi + TARGET="${1}" bastille_root_check