From: Justin Cinkelj <justin.cink...@xlab.si>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

cli: fix run command

The c621a007340913aa4832f3fda195b29114a41a6a broke cli run command.
It was possible to "run --newprogram /myapp". But "run /myapp" didn't do
anything - it didn't even complain about "Failed to load object: /myapp".

Signed-off-by: Justin Cinkelj <justin.cink...@xlab.si>
Message-Id: <20170802104652.22524-1-justin.cink...@xlab.si>

---
diff --git a/modules/cli/commands/run.lua b/modules/cli/commands/run.lua
--- a/modules/cli/commands/run.lua
+++ b/modules/cli/commands/run.lua
@@ -17,7 +17,8 @@ Options:

 cmd.main = function(args)
   local args, opts = cmd.parser:parse(args)
-  flag_newprogram = opts.newprogram
+  flag_newprogram = 0
+  if opts.newprogram then flag_newprogram=1 end

   for i = 1, #args do
     osv_request({"app"}, "PUT", {

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to