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 8, 2024
1 parent 8dc5590 commit 02d9ec7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,11 @@ get_shell_info()
esac
_shell_version="${_shell_version# }"

case "${_shell_name}" in
'osh') _shell_version="$(printf '%s\n' "${_shell_version}" | cut -f '1')" ;;
*) ;;
esac

printf '%s %s\n' "${_shell_name:-unknown}" "${_shell_version:-unknown}"
}

Expand Down

0 comments on commit 02d9ec7

Please sign in to comment.