diff --git a/ovh-api-bash-client.sh b/ovh-api-bash-client.sh index b14b008..a065848 100755 --- a/ovh-api-bash-client.sh +++ b/ovh-api-bash-client.sh @@ -39,10 +39,12 @@ createApp() echo echo "Do you also need to create a consumer key? (y/n)" read NEXT - if [ $( echo $NEXT | tr [:upper:] [:lower:] ) = y ] + if [ -n "$NEXT" ] && [ $( echo $NEXT | tr [:upper:] [:lower:] ) = y ] then initApplication createConsumerKey + else + echo -e "OK, no consumer key created for now.\nYou will be able to initiaze the consumer key later calling :\n$0 --init" fi }