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 21, 2024
1 parent 8615df2 commit 61b9445
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
# shellcheck disable=SC3043 # In POSIX sh, local is undefined

SCRIPT_NAME='Bits info'
SCRIPT_VERSION='1.5.3'
SCRIPT_VERSION='1.5.4'

echo '==='
command 1> /dev/null -v 'command'; echo $?
command 1> /dev/null -v ':'; echo $?
echo '==='
### CONFIGURATION ###

set -u 2> /dev/null || :
Expand All @@ -20,7 +16,7 @@ case "$(set 2> /dev/null -o || set || :)" in *'pipefail'*) set -o pipefail || pr

# The "obosh" shell does NOT support "command" while the "posh" shell does NOT support "type"
{
command 1> /dev/null -v 'command'
command 1> /dev/null -v ':'
} 2> /dev/null || command()
{
test "${1-}" = '-v' || exit 255
Expand Down Expand Up @@ -1037,7 +1033,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.'
Expand Down

0 comments on commit 61b9445

Please sign in to comment.