From dda2b8aa9854a0da2602ee1f4427b11c47bf90f9 Mon Sep 17 00:00:00 2001
From: Erhard Rank <erank@sipwise.com>
Date: Thu, 8 Sep 2011 13:16:30 +0000
Subject: [PATCH] fix: check if both version numbers are present

---
 deployment.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/deployment.sh b/deployment.sh
index c6f7de6..da7fc17 100755
--- a/deployment.sh
+++ b/deployment.sh
@@ -313,11 +313,11 @@ if [ -n "$PROFILE" ] && [ -n "$NETSCRIPT_SERVER" ] ; then
 fi
 
 # check, if both SP/CE version and ngcp-installer version are present
-if [ $SP_VERSION && ! $INSTALLER_VERSION ] ; then
+if [ -n "$SP_VERSION" ] && [ -z "$INSTALLER_VERSION" ] ; then
   echo "Error: SP/CE version, but no ngcp-installer version specified" >&2
   exit 1
 fi
-if [ ! $SP_VERSION && $INSTALLER_VERSION ] ; then
+if [ -z $SP_VERSION ] && [ -n $INSTALLER_VERSION ] ; then
   echo "Error: ngcp-installer version, but no SP/CE version specified" >&2
   exit 1
 fi