tlaunch checksum command in powershell on windows - Granular.jl - Julia package for granular dynamics simulation
(HTM) git clone git://src.adamsgaard.dk/Granular.jl
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 94c63541eebe18dcb5915c8cd1dcbeae2d576b7b
(DIR) parent 58d2643f7f6bcd6849152cb030481aefa724e57a
(HTM) Author: Anders Damsgaard <andersd@riseup.net>
Date: Mon, 1 May 2017 22:24:23 -0400
launch checksum command in powershell on windows
Diffstat:
M test/vtk.jl | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/test/vtk.jl b/test/vtk.jl
t@@ -15,6 +15,8 @@ if Base.is_linux()
cmd = "sha256sum"
elseif Base.is_apple()
cmd = ["shasum", "-a", "256"]
+elseif Base.is_windows()
+ cmd = ["powershell", "-Command", "\"Get-FileHash", "-Algorithm", "SHA256\""]
else
error("checksum verification of VTK file not supported on this platform")
end