Skip to content

Commit

Permalink
Use inner loop vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Toll committed Oct 30, 2020
1 parent 72b9e9e commit e7574e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/release/mule/sign/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ echo
date "+build_release begin SIGN stage %Y%m%d_%H%M%S"
echo

OS_TYPE=$(./scripts/ostype.sh)
VERSION=${VERSION:-$(./scripts/compute_build_number.sh -f)}
BRANCH=${BRANCH:-$(./scripts/compute_branch.sh)}
CHANNEL=${CHANNEL:-$(./scripts/compute_branch_channel.sh "$BRANCH")}
Expand Down Expand Up @@ -46,7 +45,7 @@ for os in "${OS_TYPES[@]}"; do
ARCHS=(amd64 arm arm64)
for arch in "${ARCHS[@]}"; do
(
cd "$OS_TYPE/$arch"
cd "$os/$arch"

# Clean package directory of any previous operations.
rm -rf hashes* *.sig *.asc *.asc.gz
Expand All @@ -61,7 +60,7 @@ for os in "${OS_TYPES[@]}"; do
gpg -u [email protected] --detach-sign "$file"
done

HASHFILE="hashes_${CHANNEL}_${OS_TYPE}_${ARCH_TYPE}_${VERSION}"
HASHFILE="hashes_${CHANNEL}_${os}_${arch}_${VERSION}"

md5sum *.tar.gz *.deb *.rpm >> "$HASHFILE"
shasum -a 256 *.tar.gz *.deb *.rpm >> "$HASHFILE"
Expand Down

0 comments on commit e7574e9

Please sign in to comment.