mirror of
https://github.com/alexanderepstein/Bash-Snippets
synced 2018-11-08 02:59:35 +01:00
have exit codes
This commit is contained in:
parent
d3e9dd7aaa
commit
d04b600ad1
@ -175,12 +175,16 @@ done
|
|||||||
|
|
||||||
if [[ $1 == "update" ]];then
|
if [[ $1 == "update" ]];then
|
||||||
update
|
update
|
||||||
|
exit 0
|
||||||
elif [[ $1 == "help" ]];then
|
elif [[ $1 == "help" ]];then
|
||||||
usage
|
usage
|
||||||
|
exit 0
|
||||||
elif [[ $# == "0" ]];then
|
elif [[ $# == "0" ]];then
|
||||||
usage
|
usage
|
||||||
|
exit 0
|
||||||
else
|
else
|
||||||
getTicker $1 $2 $3 $4 $5 $6 $7 $8 $9 # the company name might have spaces so passing in all args allows for this
|
getTicker $1 $2 $3 $4 $5 $6 $7 $8 $9 # the company name might have spaces so passing in all args allows for this
|
||||||
getStockInformation $symbol # based on the stock symbol exrapolated by the getTicker function get information on the stock
|
getStockInformation $symbol # based on the stock symbol exrapolated by the getTicker function get information on the stock
|
||||||
printStockInformation # print this information out to the user in a human readable format
|
printStockInformation # print this information out to the user in a human readable format
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user