From 697cd27a564bd437ec6b432e1ab70205a76f6809 Mon Sep 17 00:00:00 2001 From: Fredl Date: Thu, 20 Apr 2017 16:26:41 +0200 Subject: [PATCH] Update update-ghost.sh VERSION='latest' # instead of constantly changing this code... if [ ! -d $DIR ] ; then ... # so we don't look for a folder named "DIR" ;) --- update-ghost.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update-ghost.sh b/update-ghost.sh index 9d8fd32..9919e33 100755 --- a/update-ghost.sh +++ b/update-ghost.sh @@ -4,7 +4,7 @@ # the documentation of the Uberspace-wiki: http://goo.gl/eW5TlR # set the current ghost-version here -VERSION='0.11.3' +VERSION='latest' # instead of constantly changing this code... # set the ghost installation directory GHOSTDIR=~/ghost @@ -13,7 +13,8 @@ GHOSTDIR=~/ghost RHEL='cat /etc/redhat-release | cut -d" " -f3 | cut -d "." -f1"' for DIR in $GHOSTDIR ; do - if [ -d DIR ] ; then + if [ ! -d $DIR ] ; then + # I wonder if anybody has ever seen this message? echo "you do not seem to have ghost-directory in your ~/." echo "please make sure you have followed the documentation." echo "if you are unsure, check the wiki: http://goo.gl/eW5TlR"