fix #9 shasum error
This commit is contained in:
+1
-3
@@ -305,9 +305,7 @@ end
|
|||||||
|
|
||||||
utility.sha512sum = function(file_path)
|
utility.sha512sum = function(file_path)
|
||||||
local sha512sum
|
local sha512sum
|
||||||
if utility.OS == "Linux" then
|
if (utility.OS == "Linux") or (utility.OS == "macOS") then
|
||||||
sha512sum = utility.capture_safe("shasum -p -t -a 512 " .. file_path:enquote()) -- TODO check this
|
|
||||||
elseif utility.OS == "macOS" then
|
|
||||||
sha512sum = utility.capture_safe("shasum -U -a 512 " .. file_path:enquote())
|
sha512sum = utility.capture_safe("shasum -U -a 512 " .. file_path:enquote())
|
||||||
elseif utility.OS == "Windows" then
|
elseif utility.OS == "Windows" then
|
||||||
error("utility.sha512sum() not implemented for Windows.")
|
error("utility.sha512sum() not implemented for Windows.")
|
||||||
|
|||||||
Reference in New Issue
Block a user