wiki/notebook/assets/challenges.exercism.bash/error-handling.sh

11 lines
150 B
Bash
Raw Normal View History

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