diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-26 17:15:15 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-26 18:39:27 +0300 |
commit | bdc820db3567ba1f4e604158d6ac9d5e43cb3c22 (patch) | |
tree | 07bf2aa8c9ae4923b89c6e0f0fd4561ec076a485 /tests/package-archive/driver.in | |
parent | 8e9677667ef6cbee2874592a723c85fc9530c51c (diff) |
Convert bash functions that return arrays to comply with Bash Style Guide
Diffstat (limited to 'tests/package-archive/driver.in')
-rw-r--r-- | tests/package-archive/driver.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/package-archive/driver.in b/tests/package-archive/driver.in index a32e571..5adecf1 100644 --- a/tests/package-archive/driver.in +++ b/tests/package-archive/driver.in @@ -8,13 +8,13 @@ bpkg_util_bpkg=bpkg trap "{ exit 1; }" ERR -set -o errtrace # Trap ERR in functions. +set -o errtrace # Trap in functions and subshells. +set -o pipefail # Fail if any pipeline command fails. +shopt -s lastpipe # Execute last pipeline command in the current shell. +shopt -s nullglob # Expand no-match globs to nothing rather than themselves. @import bpkg-util/package-archive@ # Call the function passed on the command line. # -# Note that we reset IFS to make sure that the function being tested is not -# affected by its value set by the caller. -# -IFS= "$@" +"$@" |