From: donghee Date: Sat, 22 Sep 2012 01:49:59 +0000 (+0900) Subject: [Title] Fixed a bug that sha256sum does not exist on windows X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e803d434e79bd4abfed1d3faf7f16a9c417a7a14;p=sdk%2Ftools%2Fsdk-build.git [Title] Fixed a bug that sha256sum does not exist on windows --- 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