summaryrefslogtreecommitdiff
diff options
-rw-r--r--jobs/usb.txt.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs/usb.txt.in b/jobs/usb.txt.in
index d159c39..f7fe5b6 100644
--- a/jobs/usb.txt.in
+++ b/jobs/usb.txt.in
@@ -1,7 +1,7 @@
plugin: shell
id: usb/detect
estimated_duration: 1.0
-command: lsusb | sed 's/.*\(ID .*\)/\1/' | head -n 4 || echo "No USB devices were detected" >&2
+command: set -o pipefail; lsusb 2>/dev/null | sed 's/.*\(ID .*\)/\1/' | head -n 4 || echo "No USB devices were detected" >&2
_description: Detects and shows USB devices attached to this system.
plugin: user-interact-verify