From af7b8b8da0eea2f91addaf283cb3e02f2a7526d4 Mon Sep 17 00:00:00 2001 From: ale5000 <15793015+ale5000-git@users.noreply.github.com> Date: Mon, 21 Oct 2024 16:26:31 +0200 Subject: [PATCH] Minor change --- tools/bits-info.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/bits-info.sh b/tools/bits-info.sh index 9056c4a9..86b1dbd5 100755 --- a/tools/bits-info.sh +++ b/tools/bits-info.sh @@ -1032,7 +1032,11 @@ while test "${#}" -gt 0; do printf '\n%s\n\n' 'Coming soon...' - if test -z "${0}" || ! script_filename="$(basename "${0}")"; then exit 1; fi + if test -n "${0-}" && script_filename="$(basename "${0}")"; then + : + else + exit 1 + fi printf '%s\n' 'Notes:' printf '%s\n' 'If a single parameter is given, then it returns the specific error code, otherwise if there are multiple files, it returns the number of files that were not recognized.'