Commit 4f6f9378 authored by York-Simon Johannsen's avatar York-Simon Johannsen

Fix regex in devices lld for moren then 10 devices

parent ced63dc4
......@@ -13,7 +13,7 @@ for vUUID in ${vDeviceUUIDs}; do
for vID in ${vIDs}; do
[ ${vRun} != 0 ] && vOut="${vOut},"
vPath="$(sudo btrfs device usage "${vMount}" | egrep "ID:\s+${vID}" | grep -Po '^[^,]+')"
vPath="$(sudo btrfs device usage "${vMount}" | egrep "ID:\s+${vID}$" | grep -Po '^[^,]+')"
vOut="${vOut}{\"{#BTRFSUUID}\":\"${vUUID}\",\"{#BTRFSMOUNT}\":\"${vMount}\",\"{#BTRFSDEVID}\":\"${vID}\",\"{#BTRFSDEVPATH}\":\"${vPath}\"}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment