mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-06 04:34:19 +01:00
Revert to original file before re-add new
This commit is contained in:
@@ -438,36 +438,32 @@ EMPTY_JAIL=""
|
|||||||
THICK_JAIL=""
|
THICK_JAIL=""
|
||||||
VNET_JAIL=""
|
VNET_JAIL=""
|
||||||
|
|
||||||
# Handle and parse options
|
## handle combined options then shift
|
||||||
while [ $# -gt 0 ]; do
|
if [ "${1}" = "-T" -o "${1}" = "--thick" -o "${1}" = "thick" ] && \
|
||||||
|
[ "${2}" = "-V" -o "${2}" = "--vnet" -o "${2}" = "vnet" ]; then
|
||||||
|
THICK_JAIL="1"
|
||||||
|
VNET_JAIL="1"
|
||||||
|
shift 2
|
||||||
|
else
|
||||||
|
## handle single options
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-E|--empty|empty)
|
-E|--empty|empty)
|
||||||
EMPTY_JAIL="1"
|
|
||||||
shift
|
shift
|
||||||
|
EMPTY_JAIL="1"
|
||||||
;;
|
;;
|
||||||
-T|--thick|thick)
|
-T|--thick|thick)
|
||||||
THICK_JAIL="1"
|
|
||||||
shift
|
shift
|
||||||
|
THICK_JAIL="1"
|
||||||
;;
|
;;
|
||||||
-V|--vnet|vnet)
|
-V|--vnet|vnet)
|
||||||
VNET_JAIL="1"
|
|
||||||
shift
|
shift
|
||||||
|
VNET_JAIL="1"
|
||||||
;;
|
;;
|
||||||
-*|--*)
|
-*)
|
||||||
error_notify "Unknown Option."
|
error_notify "Unknown Option."
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
*)
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
|
||||||
|
|
||||||
## validate for combined options
|
|
||||||
if [ -n "${EMPTY_JAIL}" ]; then
|
|
||||||
if [ -n "${THICK_JAIL}" ] || [ -n "${VNET_JAIL}" ]; then
|
|
||||||
error_exit "Error: Empty jail option can't be used with other options."
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NAME="$1"
|
NAME="$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user