Skip to content

Commit

Permalink
Update bits-info.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git authored Oct 21, 2024
1 parent 1336ba5 commit 85e17f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ main()
shell_bit="$(retrieve_bitness_from_uname || :)" # Use it only as last resort (almost never happens)
fi

set -x
os_bit='unknown'
if test "${OS-}" = 'Windows_NT' && os_bit="${PROCESSOR_ARCHITEW6432:-${PROCESSOR_ARCHITECTURE-}}" && test -n "${os_bit}"; then
# On Windows 2000+ / ReactOS
Expand All @@ -914,8 +915,10 @@ main()
*) os_bit='unknown' ;;
esac
else
echo '---'
os_bit="$(retrieve_bitness_from_uname || :)" # Use it only as last resort (almost never happens)
fi
set +x

if test -r '/proc/cpuinfo' && tmp_var="$(grep -e '^flags[[:space:]]*:' -- '/proc/cpuinfo' | cut -d ':' -f '2-' -s)" && test -n "${tmp_var}"; then
if printf '%s\n' "${tmp_var}" | grep -m 1 -q -w -e '[[:lower:]]\{1,\}_lm'; then
Expand Down

0 comments on commit 85e17f6

Please sign in to comment.