Spawn.vala
[gitlive] / Spawn.vala
index 69db9ea..3bc3d1a 100644 (file)
@@ -130,8 +130,8 @@ public class Spawn : Object
         this.cfg = cfg;
      
     
-        this.cfg.cwd =  this.cfg.cwd.length || GLib.Enviroment.get_home_dir();
-        if (!this.cfg.args.length) {
+        this.cfg.cwd =  this.cfg.cwd.length  < 1 ? GLib.Environment.get_home_dir() : this.cfg.cwd;
+        if (!this.cfg.args.length < 0) {
             throw new Error("No arguments");
         }
         this.run();