diff --git a/astronaut/freshnaut b/astronaut/freshnaut index 04914fa..15d62c7 100755 --- a/astronaut/freshnaut +++ b/astronaut/freshnaut @@ -17,7 +17,7 @@ function call(command) local pipe = io.popen(command) if pipe then - local output = pipe:read("a") + local output = pipe:read("*all") if pipe:close() then if #output > 0 then return output:match("(.-)%s*$") @@ -181,4 +181,7 @@ elseif arg[1] == "dir" then print("Failed to create dir for " .. satellite) end end +else + show_help() + os.exit(1) end