BUGFIX: remove blank strings from ENV passing
authorSam <sam.saffron@gmail.com>
Wed, 23 Apr 2014 06:49:24 +0000 (16:49 +1000)
committerSam <sam.saffron@gmail.com>
Wed, 23 Apr 2014 06:49:24 +0000 (16:49 +1000)
launcher

index b6704f3d0481dd02f2dff735c2bd8115c11c8e40..ca777c12290ee416839217c5de1ca2380f722569 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -169,7 +169,9 @@ RUBY
 
     env=()
     while read i; do
-      env[${#env[@]}]=$i
+      if [ -n "$i" ]; then
+        env[${#env[@]}]=$i
+      fi
     done <<< "$raw"
 
     echo "Calculated ENV: ${env[@]}"