diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2021-09-23 12:43:16 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2021-09-23 12:43:16 -0400 |
| commit | 5caaa489ac45e23d1c0160ab6668d12585f6bffe (patch) | |
| tree | 261b748295847e22c99dd08d3d9833506bf2ee8f /.local/bin/dmenuumount | |
| parent | f42cb321f09e44c00213e186f0208abf51088d33 (diff) | |
| parent | dd8da1765a78117219e8b81d0945baa1e66c3a67 (diff) | |
| download | eibhear-5caaa489ac45e23d1c0160ab6668d12585f6bffe.tar.gz eibhear-5caaa489ac45e23d1c0160ab6668d12585f6bffe.tar.zst eibhear-5caaa489ac45e23d1c0160ab6668d12585f6bffe.zip | |
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin/dmenuumount')
| -rwxr-xr-x | .local/bin/dmenuumount | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/dmenuumount b/.local/bin/dmenuumount index 52dd7ff..f7d0747 100755 --- a/.local/bin/dmenuumount +++ b/.local/bin/dmenuumount @@ -26,7 +26,7 @@ asktype() { \ esac } -drives=$(lsblk -nrpo "name,type,size,mountpoint" | awk '$4!~/\/boot|\/efi|\/home$|SWAP/&&length($4)>1{printf "%s (%s)\n",$4,$3}') +drives=$(lsblk -nrpo "name,type,size,mountpoint,label" | sed 's/ /:/g' | awk -F':' '$4!~/\/boot|\/efi|\/home$|SWAP/&&length($4)>1{printf "%s (%s) %s\n",$4,$3,$5}') if ! grep simple-mtpfs /etc/mtab; then [ -z "$drives" ] && echo "No drives to unmount." && exit |
