parent
7ef1637098
commit
86164aff20
|
@ -136,8 +136,11 @@ while getopts "uv" opt; do
|
|||
esac
|
||||
done
|
||||
|
||||
|
||||
if [[ $1 == "update" ]];then
|
||||
update
|
||||
elif [[ $# == "0" ]];then
|
||||
echo "Error: requires an argument either stocks [company] or stocks [stock symbol]"
|
||||
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
|
||||
getStockInformation $symbol # based on the stock symbol exrapolated by the getTicker function get information on the stock
|
||||
|
|
Loading…
Reference in New Issue