mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 23:20:32 +00:00
path_id: suppress trailing '-' like 'ID_PATH=pci-0000:05:01.0-'
This commit is contained in:
@@ -95,7 +95,11 @@ handle_pci () {
|
||||
;;
|
||||
esac
|
||||
done
|
||||
d="pci-$pci_id-$d"
|
||||
if [ "$d" ]; then
|
||||
d="pci-$pci_id-$d"
|
||||
else
|
||||
d="pci-$pci_id"
|
||||
fi
|
||||
D="$host_dev_path"
|
||||
RESULT=0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user