diff options
author | Jeff Lane <jeffrey.lane@canonical.com> | 2014-04-10 17:51:48 -0400 |
---|---|---|
committer | Jeff Lane <jeffrey.lane@canonical.com> | 2014-04-10 17:51:48 -0400 |
commit | bfd5e8769f08e3b0dc78f7c7052f157fe5376e53 (patch) | |
tree | 10920d243faa5914a4e8e344140d7d8a26784547 | |
parent | a9b77d5b114324994c85c59d068ca16832fe25af (diff) |
fixed usb/detect job to properly fail if lsusb fails for some reason
-rw-r--r-- | jobs/usb.txt.in | 2 |
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 |