1
0
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:
Vitezslav Crhonek
2025-09-01 11:06:44 +02:00
parent 7ba0e54565
commit 79aeddf7c5

View File

@@ -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 \