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 b7f190e commit 544f252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bits-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SCRIPT_VERSION='1.4'

set -u 2> /dev/null || :
# shellcheck disable=SC3040 # Ignore: In POSIX sh, set option pipefail is undefined
case "$(set 2> /dev/null +o || :)" in *'o pipefail'*) echo 'ok'; set -o pipefail || printf 1>&2 '%s\n' 'Failed: pipefail' ;; *) ;; esac
case "$(set 2> /dev/null +o || set || :)" in *'o pipefail'*) echo 'ok'; set -o pipefail || printf 1>&2 '%s\n' 'Failed: pipefail' ;; *) ;; esac

echo '---'
set +o | grep pipefail || set +o
Expand Down

0 comments on commit 544f252

Please sign in to comment.