From 02d9ec7f1610e9a8325c590bf873224154eef7ec Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Wed, 9 Oct 2024 00:39:38 +0200 Subject: [PATCH] Update bits-info.sh --- tools/bits-info.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/bits-info.sh b/tools/bits-info.sh index a4e2d155..db3bff76 100755 --- a/tools/bits-info.sh +++ b/tools/bits-info.sh @@ -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}" }