From cd5ff7935b1a345a823c30d668924f9a4463cf73 Mon Sep 17 00:00:00 2001
From: felmer <felmer>
Date: Mon, 12 Sep 2011 09:21:20 +0000
Subject: [PATCH] LMS-2471 script making more robust

SVN: 22869
---
 .../source/bash/check-and-exit-if-new-sprint-server.sh        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openbis_all/source/bash/check-and-exit-if-new-sprint-server.sh b/openbis_all/source/bash/check-and-exit-if-new-sprint-server.sh
index 400bfe6a589..7872ca185fa 100755
--- a/openbis_all/source/bash/check-and-exit-if-new-sprint-server.sh
+++ b/openbis_all/source/bash/check-and-exit-if-new-sprint-server.sh
@@ -30,12 +30,12 @@ CURRENT_VERSION=UNKNOWN
 if [ -f $LOG_FILE ]; then
     CURRENT_VERSION=`awk '/STATUS.CISDContextLoaderListener - Version/ {print $1" "$2" "$8" "$9}' $LOG_FILE | head -n 1`
     CURRENT_VERSION_NAME=`echo $CURRENT_VERSION|awk '{print $3}'`
-    if [ $CURRENT_VERSION_NAME == "" ]; then
+    if [ "$CURRENT_VERSION_NAME" == "" ]; then
         echo "Current version of openBIS Application Server not known"
         exit
     fi
     echo "Current openBIS Application Server: $CURRENT_VERSION"
-    if [ "SNAPSHOT" != $CURRENT_VERSION_NAME ]; then
+    if [ "SNAPSHOT" != "$CURRENT_VERSION_NAME" ]; then
         CURRENT_MAJOR_VERSION=${CURRENT_VERSION_NAME%.*}
         echo "Current major version: $CURRENT_MAJOR_VERSION"
         TIME_STAMP=`getValue "$VERSION_FILE" $CURRENT_MAJOR_VERSION`
-- 
GitLab