From f55335e21cebae94344710d60273215d24f5fa87 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Thu, 9 Jan 2025 23:31:23 -0700 Subject: [PATCH] common: fix [] --- 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 5b3611db..3e29683c 100644 --- a/usr/local/share/bastille/common.sh +++ b/usr/local/share/bastille/common.sh @@ -176,7 +176,7 @@ set_target_single() { error_exit "[all|ALL] not supported with this command." elif [ "$(echo ${_TARGET} | wc -w)" -gt 1 ]; then error_exit "Error: Command only supports a single TARGET." - elif [ ! -d "${bastille_jailsdir}/${_TARGET}" ] && [ echo "${_TARGET}" | grep -Eq '^[0-9]+$' ]; then + elif [ ! -d "${bastille_jailsdir}/${_TARGET}" ] && echo "${_TARGET}" | grep -Eq '^[0-9]+$'; then if get_jail_name "${_TARGET}" > /dev/null; then _TARGET="$(get_jail_name ${_TARGET})" else