add check during initialization and information to create a consumer key later

pull/3/head
antoine.leveugle 2014-04-28 12:19:11 +02:00
parent c3c5130f5d
commit 1eb3c11c18
1 changed files with 3 additions and 1 deletions

View File

@ -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
}