From 9da73d6cf090fe624c0570425c055ef4241e2084 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:28:50 -0700 Subject: [PATCH] set TARGET to local only for some functions --- usr/local/share/bastille/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/common.sh b/usr/local/share/bastille/common.sh index 6de5d62b..22531c85 100644 --- a/usr/local/share/bastille/common.sh +++ b/usr/local/share/bastille/common.sh @@ -83,7 +83,7 @@ check_target_exists() { } check_target_is_running() { - TARGET="${1}" + local TARGET="${1}" if [ ! "$(/usr/sbin/jls name | awk "/^${TARGET}$/")" ]; then error_exit "[${TARGET}]: Not started. See 'bastille start ${TARGET}'." else