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 18, 2024
1 parent 043cd16 commit 831aa3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ get_shell_exe()
case "${_gse_tmp_var}" in *'/'* | *"\\"*) ;; *) _gse_tmp_var="$(which 2> /dev/null "${_gse_tmp_var}")" || return 3 ;; esac # We may not get the full path with "command -v" on osh
elif _gse_tmp_var="${BASH:-${SHELL-}}" && test -n "${_gse_tmp_var}"; then
if test "${_gse_tmp_var}" = '/bin/sh' && test "$(uname 2> /dev/null || :)" = 'Windows_NT'; then _gse_tmp_var="$(command 2> /dev/null -v 'busybox')" || return 2; fi
if test ! -e "${_gse_tmp_var}" && test -e "${_gse_tmp_var}.exe"; then _gse_tmp_var="${_gse_tmp_var}.exe"; fi # Special fix for broken versions of Bash under Windows
if test ! -x "${_gse_tmp_var}" && test -x "${_gse_tmp_var}.exe"; then _gse_tmp_var="${_gse_tmp_var}.exe"; fi # Special fix for broken versions of Bash under Windows
else
return 1
fi
Expand Down Expand Up @@ -691,7 +691,7 @@ get_applet_name()

case "${1}" in
'busybox' | 'osh')
if test -e "/proc/${$}/cmdline" && _shell_cmdline="$(tr 2> /dev/null -- '\0' ' ' 0< "/proc/${$}/cmdline")" && test -n "${_shell_cmdline}"; then
if test -r "/proc/${$}/cmdline" && _shell_cmdline="$(tr 2> /dev/null -- '\0' ' ' 0< "/proc/${$}/cmdline")" && test -n "${_shell_cmdline}"; then
:
elif _shell_cmdline="$(ps 2> /dev/null -p "${$}" -o 'args=')"; then
:
Expand Down Expand Up @@ -849,7 +849,7 @@ main()
esac
elif command 1> /dev/null 2>&1 -v 'getconf' && os_bit="$(getconf 'LONG_BIT')" && test -n "${os_bit}"; then
os_bit="${os_bit}-bit"
elif test -e '/system/build.prop'; then
elif test -f '/system/build.prop'; then
# On Android
case "$(file_getprop 'ro.product.cpu.abi' '/system/build.prop' || :)" in
'x86_64' | 'arm64-v8a' | 'mips64' | 'riscv64') os_bit='64-bit' ;;
Expand Down

0 comments on commit 831aa3f

Please sign in to comment.