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 13, 2024
1 parent 78f60b3 commit 723249f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -665,11 +665,11 @@ get_applet_name()
{
local _shell_cmdline _current_applet

echo '---'
tr 2> /dev/null -- '\0' ' ' 0< "/proc/${$}/cmdline" && echo 0 || echo $?
echo '---'
1>&2 echo '---'
1>&2 tr -- '\0' ' ' 0< "/proc/${$}/cmdline" && 1>&2 echo 0 || 1>&2 echo $?
1>&2 echo '---'
case "${1}" in
'busybox' | 'osh')
* | 'busybox' | 'osh')
if _shell_cmdline="$(tr 2> /dev/null -- '\0' ' ' 0< "/proc/${$}/cmdline")" && test -n "${_shell_cmdline}"; then
for _current_applet in bash lash msh hush ash osh sh; do
if printf '%s\n' "${_shell_cmdline}" | grep -m 1 -q -w -e "${_current_applet}"; then
Expand Down

0 comments on commit 723249f

Please sign in to comment.