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