summaryrefslogtreecommitdiff
path: root/completions/mtx
diff options
context:
space:
mode:
Diffstat (limited to 'completions/mtx')
-rw-r--r--completions/mtx4
1 files changed, 2 insertions, 2 deletions
diff --git a/completions/mtx b/completions/mtx
index 7a0ea98f..12fa12f1 100644
--- a/completions/mtx
+++ b/completions/mtx
@@ -10,11 +10,11 @@ _mtx()
options="-f nobarcode invert noattach --version inquiry noattach \
inventory status load unload eepos first last next"
- tapes=$(mtx status | \
+ tapes=$(mtx status 2>/dev/null | \
awk '/Storage Element [0-9]+:Full/ { printf "%s ", $3 }')
tapes=${tapes//:Full}
- drives=$(mtx status | \
+ drives=$(mtx status 2>/dev/null | \
awk '/Data Transfer Element [0-9]+:(Full|Empty)/ { printf "%s ", $4 }')
drives=${drives//:Full}
drives=${drives//:Empty}