Skip to content

Commit

Permalink
fix issues of -c flag on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
liberize committed Dec 4, 2024
1 parent 6e03ce2 commit 54015ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ if [ -n "$VERIFY_CHECKSUM" ]; then
echo '=> build crc32 tool...'
g++ -std=$CXX_STANDARD -w "$DIR/crc32.cpp" -o crc32 || exit 1
echo '=> write checksum to binary...'
OFFSET="$(grep -abo ssccksum "$2" | grep -o '^[0-9]*')"
OFFSET="$(LC_ALL=C grep -abo ssccksum "$2" | grep -o '^[0-9]*')"
CKSUM="$(./crc32 "$2")"
#echo "offset=$OFFSET cksum=$CKSUM"
perl -e "open(my \$fh,'+<','$2'); seek(\$fh,$OFFSET,0); print \$fh pack('V',$OFFSET),pack('V',$CKSUM)"
Expand Down

0 comments on commit 54015ab

Please sign in to comment.