summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/bash-style.cli4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/bash-style.cli b/doc/bash-style.cli
index b07ffc1..8de01da 100644
--- a/doc/bash-style.cli
+++ b/doc/bash-style.cli
@@ -670,13 +670,13 @@ function func()
}
set +o pipefail
-func | readarray -t r
+func | readarray -t ro
r=\"${PIPESTATUS[0]}\"
set -o pipefail
case \"$r\" in
0)
- echo \"${r[0]}\"
+ echo \"${ro[0]}\"
;;
1)
exit 1