Skip to content

Commit

Permalink
install: remove -p flag from shasum, it is non-standard
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed Jan 10, 2020
1 parent 9ff8911 commit b753c69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ curl -s "$SOURCE_URL" >"$TMP_FILE"

# here we perform a paranoid checksum test to make sure we got expected file
if [[ -n "$EXPECTED_CHECKSUM" ]]; then
CHECKSUM=$(shasum -p -a 256 "$TMP_FILE" | cut -d " " -f 1)
CHECKSUM=$(shasum -a 256 "$TMP_FILE" | cut -d " " -f 1)
if [[ "$CHECKSUM" != "$EXPECTED_CHECKSUM" ]]; then
echo "SHA checksum of downloaded file does not match expected value"
echo " URL: $SOURCE_URL"
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-installer-checksum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/_config.sh"

cd "$ROOT"

CURRENT_CHECKSUM=$(shasum -p -a 256 "dirac" | cut -d " " -f 1)
CURRENT_CHECKSUM=$(shasum -a 256 "dirac" | cut -d " " -f 1)

echo "$CURRENT_CHECKSUM"

Expand Down

0 comments on commit b753c69

Please sign in to comment.