Skip to content

Commit

Permalink
Only check macos
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts committed Oct 11, 2024
1 parent a9aee2a commit ddce99f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/download_unpack_roms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ curl -o "$temp_file" "$file_url"
# Compute the SHA256 checksum of the ROMs file and compare with the expected checksum
if [[ "$(uname)" == "Darwin" ]]; then
computed_checksum=$(shasum -a 256 "$temp_file" | awk '{ print $1 }')
elif [[ "$(uname)" == "Linux" ]]; then
computed_checksum=$(sha256sum "$temp_file" | awk '{ print $1 }')
else
echo "Unsupported OS $(uname). Exiting."
exit 1
computed_checksum=$(sha256sum "$temp_file" | awk '{ print $1 }')
fi

if [ "$computed_checksum" == "$expected_checksum" ]; then
Expand Down

0 comments on commit ddce99f

Please sign in to comment.