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

Commit

Permalink
SUBMARINE-663. Use md5sum command in publish_release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pingsutw committed Oct 20, 2020
1 parent 2ff3339 commit e096699
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dev-support/cicd/publish_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,13 @@ function publish_to_maven() {
for file in $(find . -type f); do
echo "${GPG_PASSPHRASE}" | gpg --passphrase-fd 0 --output "${file}.asc" \
--detach-sig --armor "${file}"
md5 -q "${file}" > "${file}.md5"
if [ $(command -v md5) ]; then
# Available on OS X; -q to keep only hash
md5 -q $file > $file.md5
else
# Available on Linux; cut to keep only hash
md5sum $file | cut -f1 -d' ' > $file.md5
fi
${SHASUM} -a 1 "${file}" | cut -f1 -d' ' > "${file}.sha1"
done

Expand Down

0 comments on commit e096699

Please sign in to comment.