ENV var test for MAVEN_SELECTOR was inverted 35/35/1
authorAndrew Grimberg <[email protected]>
Thu, 10 Dec 2015 00:06:14 +0000 (16:06 -0800)
committerAndrew Grimberg <[email protected]>
Thu, 10 Dec 2015 00:06:14 +0000 (16:06 -0800)
The script should be detecting on a null ENV var, not a non-null
variable. In other words, the test was inverted.

Change-Id: If5ee68301300ec363e171f99798c06daa1428ede
Signed-off-by: Andrew Grimberg <[email protected]>
jjb/vpp/include-raw-vpp-maven-push.sh

index 29e8f63..a625ed4 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # Determine the path to maven
-if [ -n "${MAVEN_SELECTOR}" ]; then
+if [ -z "${MAVEN_SELECTOR}" ]; then
     echo "ERROR: No Maven install detected!"
     exit 1
 fi