Skip to content

Commit

Permalink
build-release.sh: only checksum files
Browse files Browse the repository at this point in the history
  • Loading branch information
cuonglm committed Nov 14, 2019
1 parent 1be94e3 commit e2568b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ build_dist() {
# Clean out any old remnants of failed builds.
rm -rf "dist/$DIR"
mkdir -p "dist/$DIR"
trap "rm -rf \"dist/$DIR\"" INT TERM

# Subshell to not mess with the current env vars or CWD
(
Expand Down Expand Up @@ -70,7 +69,7 @@ checksum() {
fi

rm -f "dist/$CHECKSUM_FILE"
( cd dist && for x in *; do "${CHECKSUM_CMD[@]}" -- "$x" >> "$CHECKSUM_FILE"; done )
( cd dist && for x in *; do [ -f "$x" ] && "${CHECKSUM_CMD[@]}" -- "$x" >> "$CHECKSUM_FILE"; done )
}

echo "--- Building Release: ${VERSION}"
Expand Down

0 comments on commit e2568b3

Please sign in to comment.