From 44abcc1a0627c28438d2bfe9fd2b9fcceaf130c8 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sun, 23 Oct 2016 00:40:58 +0200 Subject: [PATCH] indendent better --- nextcloud_update.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 81350357..4d760204 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -38,15 +38,15 @@ echo "System is now upgraded, now the script will upgrade Nextcloud." echo "Which version do you want to upgrade to? Type it like this: 10.0.1" read NCVERSION wget -q --spider $DOWNLOADREPO/nextcloud-$NCVERSION.tar.bz2 - if [ $? -eq 0 ]; then - echo -e "\e[32m$NCVERSION exists!\e[0m" - else - echo - echo "$NCVERSION doesn't exist. Please check available versions here:" - echo "$DOWNLOADREPO" - echo - exit 1 - fi +if [ $? -eq 0 ]; then + echo -e "\e[32m$NCVERSION exists!\e[0m" +else + echo + echo "$NCVERSION doesn't exist. Please check available versions here:" + echo "$DOWNLOADREPO" + echo + exit 1 +fi echo "Upgrading to $NCVERSION in 15 seconds... Press CTRL+C to abort." echo "Disclamer: Tech and Me or Nextcloud are not responsible for any dataloss." echo "Config files are backed up to $BACKUP and $NCDATA aren't removed, but things could go wrong."