[Title] Fixed a bug that sha256sum does not exist on windows
authordonghee <donghee.yang@samsung.com>
Sat, 22 Sep 2012 01:49:59 +0000 (10:49 +0900)
committerdonghee <donghee.yang@samsung.com>
Sat, 22 Sep 2012 01:49:59 +0000 (10:49 +0900)
src/common/utils.rb

index ae5ec28bd94d4254b032fc8944e34f97b179af56..8c35fa920a98ca6eed60eaa02a3da197b77c2a4f 100644 (file)
@@ -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