From a4dadea7e5097fa2ac760b21bbcda4a54028b841 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sat, 19 Dec 2015 22:29:16 +0100 Subject: [PATCH] freshnaut: Support lua 5.2 --- astronaut/freshnaut | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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