Merge pull request #188 from moomalade/outputof
Chomp newlines in os.outputof()
This commit is contained in:
commit
046da71a28
@ -392,6 +392,11 @@
|
||||
exitcode = -1
|
||||
end
|
||||
|
||||
-- chomp trailing newlines
|
||||
if result then
|
||||
result = string.gsub(result, "[\r\n]+$", "")
|
||||
end
|
||||
|
||||
return result, exitcode
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user