0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 02:53:49 +01:00

Release script Linux support

This commit is contained in:
peteruithoven 2016-02-24 17:12:15 +01:00
parent 2f53a5e8b0
commit 9b88313506

View File

@ -129,9 +129,15 @@ local function quit(ev)
end end
local function md5sum(file) local function md5sum(file)
-- try OS X specific md5 utility
local rv,_,sum = pl.utils.executeex('md5 -q "' .. file .. '"') local rv,_,sum = pl.utils.executeex('md5 -q "' .. file .. '"')
if rv then
return rv and sum:sub(1, -2) or nil return rv and sum:sub(1, -2) or nil
end
-- try Linux md5sum utility
local rv,_,output = pl.utils.executeex('md5sum "' .. file .. '"')
local md5 = string.match(output, "[^%s]+")
return md5
end end
local function getYesNo(question) local function getYesNo(question)