mirror of
https://github.com/vcrhonek/hwdata
synced 2025-10-14 02:43:35 +08:00
Fix check-usb-ids
Use /bin/sh for better portability. Drop unnecessary use of elevated priledges for podman. Signed-off-by: Vitezslav Crhonek <vcrhonek@redhat.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
@@ -10,7 +10,7 @@ fi
|
||||
|
||||
tmpdir=`mktemp -d`
|
||||
echo "Listing usb devices:"
|
||||
sudo podman run -t --privileged --rm=true \
|
||||
podman run -t --privileged --rm=true \
|
||||
-v `pwd`/usb.ids:/usr/share/hwdata/usb.ids:ro \
|
||||
-v "$tmpdir:/mnt/out" \
|
||||
vcrhonek/hwdata-check \
|
||||
|
Reference in New Issue
Block a user