Skip to content

Commit

Permalink
Fix check_baserom.sh in macOS
Browse files Browse the repository at this point in the history
```
./check_baserom.sh: line 16: ${actual_sha1,,}: bad substitution
```

Change `expected_sha1` to lower case
  • Loading branch information
laqieer committed Aug 25, 2024
1 parent 8973f40 commit f4b5654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_baserom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ if [ ! -f baserom.gba ]; then
fi

# Define the expected SHA-1 value
expected_sha1="A57095DA867DE4D585C33D4394712986245FE6CA"
expected_sha1="a57095da867de4d585c33d4394712986245fe6ca"

# Calculate the SHA-1 of the file (use shasum because sha1sum is not available on macOS)
actual_sha1=$(shasum baserom.gba | awk '{print $1}')

# Compare the calculated SHA-1 with the expected value
if [ "${actual_sha1,,}" = "${expected_sha1,,}" ]; then
if [ "${actual_sha1}" = "${expected_sha1}" ]; then
echo "SHA-1 matches!"
exit 0
else
Expand Down

0 comments on commit f4b5654

Please sign in to comment.