Merge pull request #1229 from JRGTH/common_script_bugfix

This commit is contained in:
tschettervictor
2025-09-10 21:41:02 -04:00
committed by GitHub

View File

@@ -201,7 +201,7 @@ set_target() {
if jail_autocomplete "${_jail}" > /dev/null; then
_jail="$(jail_autocomplete ${_jail})"
elif [ $? -eq 2 ]; then
if grep -Ehoqw ${_jail} ${bastille_jailsdir}/*/tags; then
if grep -Ehoqw ${_jail} ${bastille_jailsdir}/*/tags 2>/dev/null; then
_jail="$(grep -Eow ${_jail} ${bastille_jailsdir}/*/tags | awk -F"/tags" '{print $1}' | sed "s#${bastille_jailsdir}/##g" | tr '\n' ' ')"
else
error_continue "Jail not found \"${_jail}\""