Merge pull request #188 from moomalade/outputof

Chomp newlines in os.outputof()
This commit is contained in:
Manu Evans 2015-08-02 10:52:29 +10:00
commit 046da71a28

View File

@ -392,6 +392,11 @@
exitcode = -1
end
-- chomp trailing newlines
if result then
result = string.gsub(result, "[\r\n]+$", "")
end
return result, exitcode
end