mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-18 16:21:32 +01:00
common: fix []
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user