mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-18 16:21:32 +01:00
Merge pull request #1191 from BastilleBSD/tschettervictor-patch-1
This commit is contained in:
@@ -249,7 +249,11 @@ set_target() {
|
||||
if jail_autocomplete "${_jail}" > /dev/null; then
|
||||
_jail="$(jail_autocomplete ${_jail})"
|
||||
elif [ $? -eq 2 ]; then
|
||||
error_continue "Jail not found \"${_jail}\""
|
||||
if grep -Ehoqw ${_jail} ${bastille_jailsdir}/*/tags; 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}\""
|
||||
fi
|
||||
else
|
||||
echo
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user