Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ci/checksum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ set -euo pipefail
function create_MD5_file() {
local -r file="$1"
echo "+ Generating MD5 checksum for $file"
"$(md5sum "$file" | awk '{print $1}')" > "$file.md5"
md5sum "$file" | awk '{print $1}' > "$file.md5"
cat "$file.md5"
}

function create_SHA1_file() {
local -r file="$1"
echo "+ Generating SHA-1 checksum for $file"
"$(sha1sum "$file" | awk '{print $1}')" > "$file.sha1"
sha1sum "$file" | awk '{print $1}' > "$file.sha1"
cat "$file.sha1"
}

function create_SHA256_file() {
local -r file="$1"
echo "+ Generating SHA256 checksum for $file"
"$(shasum -a 256 "$file" | awk '{print $1}')" > "$file.sha256"
shasum -a 256 "$file" | awk '{print $1}' > "$file.sha256"
cat "$file.sha256"
}

function create_SHA512_file() {
local -r file="$1"
echo "+ Generating SHA512 checksum for $file"
"$(shasum -a 512 "$file" | awk '{print $1}')" > "$file.sha512"
shasum -a 512 "$file" | awk '{print $1}' > "$file.sha512"
cat "$file.sha512"
}

Expand Down
Loading