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 18, 2024
1 parent 7d5c590 commit aa36475
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ SCRIPT_VERSION='1.4'

readlink "/proc/$$/exe" | grep 'obosh' && set -x || :

local abc || echo 'Failed: local'
abc_f() { local abc && echo 'OK: local' || echo 'Failed: local'; }
abc_f

set -u 2> /dev/null || :
# shellcheck disable=SC3040 # Ignore: In POSIX sh, set option pipefail is undefined
Expand Down Expand Up @@ -1018,7 +1019,7 @@ while test "${#}" -gt 0; do
done

if test "${execute_script}" = 'true'; then
if test -e '/usr/bin/uname' && test "$(/usr/bin/uname 2> /dev/null -o || :)" = 'Msys'; then PATH="/usr/bin:${PATH:-/usr/bin}"; fi # Avoid bugs on Bash under Windows
#if test -e '/usr/bin/uname' && test "$(/usr/bin/uname 2> /dev/null -o || :)" = 'Msys'; then PATH="/usr/bin:${PATH:-/usr/bin}"; fi # Avoid bugs on Bash under Windows

if test "${#}" -eq 0; then
main
Expand Down

0 comments on commit aa36475

Please sign in to comment.