error_handling.sh (150B)
1 #!/usr/bin/env bash 2 3 main() { 4 if [ "$#" -ne 1 ]; then 5 echo "Usage: ./error_handling <greetee>" 6 exit 1 7 fi 8 9 echo "Hello, $1" 10 } 11 12 main "$@"
exercismExercism solutions. | |
git clone git://code.dwrz.net/exercism | |
Log | Files | Refs |