Skip to content

Commit

Permalink
build-release.sh: make checksum process safer
Browse files Browse the repository at this point in the history
Using "*" can make checksum process fails if any file in "dist"
directory starts with "-". With the form "./*", we eliminate this
problem without paying any more cost.
  • Loading branch information
cuonglm committed Nov 14, 2019
1 parent 76a27a8 commit 022cb98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,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 "${CHECKSUM_CMD[@]}" "$x" >> "$CHECKSUM_FILE"; done )
}

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

0 comments on commit 022cb98

Please sign in to comment.