mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-06 04:34:19 +01:00
remove / to stay consistent
This commit is contained in:
@@ -207,7 +207,7 @@ list_ports(){
|
|||||||
JAIL_LIST=$(ls "${bastille_jailsdir}" | sed "s/\n//g")
|
JAIL_LIST=$(ls "${bastille_jailsdir}" | sed "s/\n//g")
|
||||||
for _JAIL in ${JAIL_LIST}; do
|
for _JAIL in ${JAIL_LIST}; do
|
||||||
if [ -f "${bastille_jailsdir}/${_JAIL}/rdr.conf" ]; then
|
if [ -f "${bastille_jailsdir}/${_JAIL}/rdr.conf" ]; then
|
||||||
_PORTS="$(cat "${bastille_jailsdir}"/"${_JAIL}"/rdr.conf | awk '{print $1":"$4"//"$2":"$5" -> "$3":"$6}')"
|
_PORTS="$(cat "${bastille_jailsdir}"/"${_JAIL}"/rdr.conf | awk '{print $1":"$4"/"$2":"$5" -> "$3":"$6}')"
|
||||||
info "[${_JAIL}]:"
|
info "[${_JAIL}]:"
|
||||||
echo "${_PORTS}"
|
echo "${_PORTS}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user