Merge "Added validation for protocol field while adding flow"
[controller.git] / opendaylight / distribution / opendaylight / src / main / resources / run.sh
index 2daa1f42e3da236d9b320bdad504cdf48eb67903..6caf3e3f57c55aa0f3c2d88f70e43dde7de355b8 100755 (executable)
@@ -44,10 +44,10 @@ function usage {
     exit 1
 }
 
-if [ -v "TMP" ]; then
-    pidfile="${TMP}/opendaylight.PID"
-else
+if [ -z ${TMP} ]; then
     pidfile="/tmp/opendaylight.PID"
+else
+    pidfile="${TMP}/opendaylight.PID"
 fi
 debug=0
 debugsuspend=0