mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-14 10:51:43 +01:00
Merge pull request #1229 from JRGTH/common_script_bugfix
This commit is contained in:
@@ -201,7 +201,7 @@ set_target() {
|
|||||||
if jail_autocomplete "${_jail}" > /dev/null; then
|
if jail_autocomplete "${_jail}" > /dev/null; then
|
||||||
_jail="$(jail_autocomplete ${_jail})"
|
_jail="$(jail_autocomplete ${_jail})"
|
||||||
elif [ $? -eq 2 ]; then
|
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' ' ')"
|
_jail="$(grep -Eow ${_jail} ${bastille_jailsdir}/*/tags | awk -F"/tags" '{print $1}' | sed "s#${bastille_jailsdir}/##g" | tr '\n' ' ')"
|
||||||
else
|
else
|
||||||
error_continue "Jail not found \"${_jail}\""
|
error_continue "Jail not found \"${_jail}\""
|
||||||
|
|||||||
Reference in New Issue
Block a user