diff --git a/usb-devices b/usb-devices index 5f60ad5..51f48b4 100755 --- a/usb-devices +++ b/usb-devices @@ -192,7 +192,7 @@ if [ ! -d /sys/bus ]; then exit 1 fi -for device in $(find /sys/bus/usb/devices -name 'usb*' -printf '%f\n' | sort -V) +for device in $(find /sys/bus/usb/devices -name 'usb*' | sed -E 's#^.*/##g' | sort -V) do print_device "/sys/bus/usb/devices/$device" 0 0 0 done