X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;fp=scripts%2Fcore%2Ffunctions.sh;h=463be9e066ab76d30541ba606e38bb62e9a6ce7b;hb=bb73b3c4702b9e1751d2b94cd3bfdebfc2b8746c;hp=c5a4f87daa7cc153a4d3d471a9c0d6e70e80ac67;hpb=f92404a4a6a0fe071d0947d541f5b518a15434b9;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index c5a4f87d..463be9e0 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -76,6 +76,7 @@ if [ -z "$skip_all" ]; then # makes the status of pipe number N (passed as first parameter) into the # main return value (i.e., the value for $?). this is super handy to avoid # repeating the awkward looking code below in multiple places. + # the numbering starts at zero, for the first item at the head of the pipe. function promote_pipe_return() { ( exit ${PIPESTATUS[$1]} )