Trim output

This commit is contained in:
Kevin Sawicki
2014-11-13 13:35:32 -08:00
parent 06c04779bf
commit ad8a020c29

View File

@@ -39,7 +39,7 @@ class AutoUpdater
try
# Last line of output is the JSON details about the release
[json] = stdout.split('\n').reverse()
[json] = stdout.trim().split('\n').reverse()
update = JSON.parse(json)?.releasesToApply?.pop?()
catch error
error.stdout = stdout