mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
Release script Linux support
This commit is contained in:
parent
2f53a5e8b0
commit
9b88313506
@ -129,10 +129,16 @@ 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
|
end
|
||||||
|
-- try Linux md5sum utility
|
||||||
|
local rv,_,output = pl.utils.executeex('md5sum "' .. file .. '"')
|
||||||
|
local md5 = string.match(output, "[^%s]+")
|
||||||
|
return md5
|
||||||
|
end
|
||||||
|
|
||||||
local function getYesNo(question)
|
local function getYesNo(question)
|
||||||
local answer
|
local answer
|
||||||
|
Loading…
Reference in New Issue
Block a user