From 3a9bdecc4d620f838488bb13087ada10919fc776 Mon Sep 17 00:00:00 2001 From: Alex Epstein Date: Fri, 30 Jun 2017 01:41:46 -0400 Subject: [PATCH] Adding unconfigured apiKey message --- taste/taste | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/taste/taste b/taste/taste index 74fb3bd..bdc15f0 100755 --- a/taste/taste +++ b/taste/taste @@ -177,6 +177,13 @@ usage() 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 checkInternet || exit 1