@ -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
else
show_help()
os.exit(1)