correct implementation
authorSam <sam.saffron@gmail.com>
Tue, 9 Feb 2016 22:04:00 +0000 (09:04 +1100)
committerSam <sam.saffron@gmail.com>
Tue, 9 Feb 2016 22:04:00 +0000 (09:04 +1100)
launcher

index 72ea66c08a392576f6ca423bd3d643859a9f7d37..a8c3416d8b2de1bbfc682f9a079759cde5cdaf5c 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -330,7 +330,7 @@ set_template_info() {
        end
     end
     # strip out blank env
-    env.delete_if{|k,v| v && v.empty?}
+    env.delete_if{|k,v| "#{v}".empty?}
     puts env.map{|k,v| "-e\n#{k}=#{v}" }.join("\n")
 RUBY