mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-27 21:58:11 -07:00
issue #29 - Add macOS alternative for sha256sum
.
This commit is contained in:
parent
da69b50eb5
commit
b1887e4170
1 changed files with 13 additions and 7 deletions
|
@ -15,8 +15,14 @@ set check_count (math "3 * $test_count")
|
||||||
|
|
||||||
set sdk_init "$HOME/.sdkman/bin/sdkman-init.sh"
|
set sdk_init "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||||
|
|
||||||
function checksum -a file
|
if [ (uname) = "Linux" ]
|
||||||
|
function checksum -a file
|
||||||
sha256sum $file | cut -d " " -f 1
|
sha256sum $file | cut -d " " -f 1
|
||||||
|
end
|
||||||
|
else # assume macOS
|
||||||
|
function checksum -a file
|
||||||
|
shasum -a 256 $file | cut -d " " -f 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
echo "Testing the sdk wrapper"
|
echo "Testing the sdk wrapper"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue