mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-21 09:41:47 +01:00
begin function define in top
This commit is contained in:
@@ -35,12 +35,22 @@ usage() {
|
||||
}
|
||||
|
||||
# Handle special-case commands first.
|
||||
case "$1" in
|
||||
help|-h|--help)
|
||||
usage
|
||||
;;
|
||||
case "${1}" in
|
||||
help|-h|--help)
|
||||
usage
|
||||
;;
|
||||
esac
|
||||
|
||||
TARGET="${1}"
|
||||
shift
|
||||
|
||||
if [ "${TARGET}" = "ALL" ]; then
|
||||
target_all_jails
|
||||
else
|
||||
check_jail_exists "${TARGET}"
|
||||
check_target_is_running "${TARGET}"
|
||||
fi
|
||||
|
||||
if [ $# -ne 0 ]; then
|
||||
usage
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user