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 7, 2024
1 parent d570c57 commit bedc9fa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# shellcheck disable=SC3043 # In POSIX sh, local is undefined

SCRIPT_NAME='Bits info'
SCRIPT_VERSION='1.5.23'
SCRIPT_VERSION='1.5.24'

### CONFIGURATION ###

Expand Down Expand Up @@ -549,6 +549,14 @@ detect_bitness_of_single_file()
return 0
fi

if test "${_dbf_size}" -ge 512 && test "$(dump_hex "${1:?}" "$((_dbf_size - 512))" '4' || :)" = '6b6f6c79'; then
# DMG - Apple Disk Image - Header => koly (0x6B 0x6F 0x6C 0x79)
# More info: https://newosxbook.com/DMG.html

printf '%s\n' 'Bit-independent DMG'
return 0
fi

if test "${_dbf_size}" -le 65280 && test "${_dbf_size}" -ge 2; then
_dbf_tmp="$(extract_bytes "${_dbf_first_2_bytes}" '0' '1')" || _dbf_tmp=''
if test "${_dbf_tmp}" = 'e9' || test "${_dbf_tmp}" = 'eb' || test "${_dbf_first_2_bytes}" = '81fc' || test "${_dbf_first_2_bytes}" = 'b409'; then
Expand Down

0 comments on commit bedc9fa

Please sign in to comment.