mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 02:33:35 +01:00
begin function define in top
This commit is contained in:
@@ -35,12 +35,22 @@ usage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Handle special-case commands first.
|
# Handle special-case commands first.
|
||||||
case "$1" in
|
case "${1}" in
|
||||||
help|-h|--help)
|
help|-h|--help)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
if [ $# -ne 0 ]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user