From 6973d25480999c6acb85b6484a16e7f20932528f Mon Sep 17 00:00:00 2001 From: Ray Ozzie Date: Mon, 21 Mar 2016 14:06:34 -0700 Subject: [PATCH] asdf --- install.sh | 5 ++--- install.sh~ | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index c16fe74..0d415a5 100755 --- a/install.sh +++ b/install.sh @@ -12,13 +12,12 @@ VERSION="master" if [[ $1 != "" ]]; then VERSION=$1; fi echo "The Things Network Gateway installer" -echo "Version $VERSION" +echo "" # Retrieve gateway configuration for later echo "Configuring gateway:" -if [ $GATEWAY_NAME == "" ]; -then +if [[ $GATEWAY_NAME == "" ]]; then echo "ERROR: NO GATEWAY_NAME FOUND IN ENVIRONMENT" exit 1 fi diff --git a/install.sh~ b/install.sh~ index 0f07db7..c16fe74 100755 --- a/install.sh~ +++ b/install.sh~ @@ -15,14 +15,14 @@ echo "The Things Network Gateway installer" echo "Version $VERSION" # Retrieve gateway configuration for later -echo "Configure your gateway:" -printf " Descriptive name [ttn-ic880a]:" -read GATEWAY_NAME +echo "Configuring gateway:" + if [ $GATEWAY_NAME == "" ]; then - echo "ERROR: NO GATEWAY SPECIFIED" + echo "ERROR: NO GATEWAY_NAME FOUND IN ENVIRONMENT" exit 1 fi +echo GATEWAY_NAME: $GATEWAY_NAME printf " Contact email: " read GATEWAY_EMAIL