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 Sep 27, 2024
1 parent f53e31e commit 4359102
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export POSIXLY_CORRECT='y'
$(set 1> /dev/null 2>&1 -o pipefail) && set -o pipefail || :

echo '---'
if tmp_var="$(ps 2> /dev/null -p "${$}" -o 'comm=')" && test -n "${tmp_var?}" && command -v "${tmp_var:?}"; then
if tmp_var="$(ps 2> /dev/null -p "${$}" -o 'comm=')" && test -n "${tmp_var?}" && shell_exe="$(command -v "${tmp_var:?}")"; then
echo "${shell_exe:?}"
realpath "${shell_exe:?}"
:
else
echo err
Expand Down

0 comments on commit 4359102

Please sign in to comment.