Skip to content

Commit

Permalink
set TARGET to local only for some functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tschettervictor authored Dec 17, 2024
1 parent 4276e63 commit 9da73d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/share/bastille/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9da73d6

Please sign in to comment.