wiki/notebook/assets/challenges.exercism.bash/error-handling.sh
2022-11-23 17:56:44 +08:00

11 lines
151 B
Bash
Executable File

#!/usr/bin/env bash
function help() {
echo "Usage: error_handling.sh <person>"
}
if test ! $# -eq 1; then
help && exit 1
fi
echo "Hello, $1"