From e803d434e79bd4abfed1d3faf7f16a9c417a7a14 Mon Sep 17 00:00:00 2001 From: donghee Date: Sat, 22 Sep 2012 10:49:59 +0900 Subject: [PATCH] [Title] Fixed a bug that sha256sum does not exist on windows --- src/common/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.rb b/src/common/utils.rb index ae5ec28..8c35fa9 100644 --- a/src/common/utils.rb +++ b/src/common/utils.rb @@ -517,7 +517,7 @@ class Utils def Utils.checksum(file_path) if File.exist? file_path then - return `sha256sum #{file_path}`.split(" ")[0] + return Utils.execute_shell_return("shasum -a 256 \"#{file_path}\"")[0].split(" ")[0] else return nil end -- 2.34.1