begin function define in top

This commit is contained in:
tschettervictor
2024-12-16 12:24:46 -07:00
committed by GitHub
parent e4487077c9
commit 5bc7cd8c73

View File

@@ -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