]> arthur.barton.de Git - bup.git/blobdiff - t/test-index-check-device.sh
tclient: invoke bup via absolute path
[bup.git] / t / test-index-check-device.sh
index 9c50534a8d92157ad34f1f94e5a2f45340515ff3..41382344a967bf284cf8504cb70781f969d3b2eb 100755 (executable)
@@ -4,7 +4,9 @@
 
 set -o pipefail
 
-if [ $(t/root-status) != root ]; then
+root_status="$(t/root-status)" || exit $?
+
+if [ "$root_status" != root ]; then
     echo 'Not root: skipping --check-device tests.'
     exit 0 # FIXME: add WVSKIP.
 fi