]> arthur.barton.de Git - bup.git/blobdiff - t/test-index-check-device.sh
Set pipefail so that "x | y || exit $?" will work properly.
[bup.git] / t / test-index-check-device.sh
index 08b2aa7ebe0dbbadfc5acffd404062db63875e10..23dbb772bd371d55f760603b59ee25b6f6a70410 100755 (executable)
@@ -2,6 +2,8 @@
 . ./wvtest-bup.sh
 . ./t/lib.sh
 
+set -o pipefail
+
 if [ $(t/root-status) != root ]; then
     echo 'Not root: skipping --check-device tests.'
     exit 0 # FIXME: add WVSKIP.