exit and return codes
This commit is contained in:
20
exit_return_codes/exercise1.sh
Normal file
20
exit_return_codes/exercise1.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# <Replace with the purpose or description of of this shell script.>
|
||||||
|
#
|
||||||
|
|
||||||
|
GLOBAL_VAR1="one"
|
||||||
|
GLOBAL_VAR2="two"
|
||||||
|
|
||||||
|
function function_one() {
|
||||||
|
local LOCAL_VAR1="one"
|
||||||
|
# <Replace with function code.>
|
||||||
|
}
|
||||||
|
|
||||||
|
# Main body of shell script starts here.
|
||||||
|
#
|
||||||
|
# <Replace with the main commands of your shell script.>
|
||||||
|
#
|
||||||
|
|
||||||
|
# Exit with an explicit exit status.
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user