17_exit.sh (496B)
1 #!/bin/sh 2 3 # Behind the scenes for all your 'sh shelllings.sh', exit codes are 4 # being used to evaluate if your exercises were successful. Like earlier 5 # when we were using && and ||, we can manually say if a code has been 6 # unsuccessful or successful. 7 # 8 # $ exit 1 # error 9 # $ exit 0 # no error 10 # 11 # The keyword 'exit' can be used to stop a program from continuing if 12 # it has 13 # 14 # Write a script below where if someone has 1412 as the argument when 15 # calling the script, it will be successful