Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Nov 9, 2024
1 parent a9d71d6 commit 3ab8571
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,12 @@ detect_bitness_of_single_file()
if test "${_dbf_size}" = 0; then
printf '%s\n' 'Empty file'
return 0
elif test "${_dbf_size}" -gt 0; then
: # OK
else
# It overflowed, probably the file is too big to be handled by this shell
printf '%s\n' 'failed'
return 1
fi

if test "${_dbf_size}" -ge 512 && test "$(dump_hex "${1:?}" "$((_dbf_size - 512))" '4' || :)" = '6b6f6c79'; then
Expand Down

0 comments on commit 3ab8571

Please sign in to comment.