Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Change sha256sum to shasum to make it Mac-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Mar 15, 2015
1 parent 2fb695a commit 3d5e00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/upload/upload-functions
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ upload_file() {

basename=$(basename "$filename")
basename_encoded=$(urlencode $basename)
checksum=$(sha256sum "$filename" | awk '{ print $1 }')
checksum=$(shasum -a 256 "$filename" | awk '{ print $1 }')

time=$(date +%s)
rand=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1)
Expand Down

0 comments on commit 3d5e00e

Please sign in to comment.