Adding unconfigured apiKey message
This commit is contained in:
parent
7f89211e6d
commit
3a9bdecc4d
|
@ -177,6 +177,13 @@ usage()
|
||||||
echo " -v Get the tool version"
|
echo " -v Get the tool version"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [[ $apiKey == "" ]];then
|
||||||
|
echo "Error: API key not setup properly"
|
||||||
|
echo "To get an API key visit https://tastedive.com/account/api_access"
|
||||||
|
echo 'After getting the API key run the following command: export TASTE_API_KEY="yourAPIKeyGoesHere"'
|
||||||
|
echo "After following all the steps and issues still persist try adding TASTE_API_KEY manually to your .bashrc"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
getConfiguredClient || exit 1
|
getConfiguredClient || exit 1
|
||||||
checkInternet || exit 1
|
checkInternet || exit 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue