set TARGET to local only for some functions

This commit is contained in:
tschettervictor
2024-12-16 19:28:50 -07:00
committed by GitHub
parent 4276e63de8
commit 9da73d6cf0

View File

@@ -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