From 1eb3c11c184e782bb4120cc0ffe2d86de4d33554 Mon Sep 17 00:00:00 2001 From: "antoine.leveugle" Date: Mon, 28 Apr 2014 12:19:11 +0200 Subject: [PATCH] add check during initialization and information to create a consumer key later --- ovh-api-bash-client.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }