diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2021-10-02 11:53:40 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2021-10-02 11:53:40 -0400 |
| commit | 163738e6ad1954c8a8a16dae98829c51cf9da4be (patch) | |
| tree | 8742b1c2f7751abf47886aeea6622eabe81c464a /.local/bin/dmenuumount | |
| parent | a3a630a3e839a730d26a137f35cce2065bbbb16f (diff) | |
| parent | 162ed8889b9893b790ca529e564d976f8190e3f3 (diff) | |
| download | eibhear-163738e6ad1954c8a8a16dae98829c51cf9da4be.tar.gz eibhear-163738e6ad1954c8a8a16dae98829c51cf9da4be.tar.zst eibhear-163738e6ad1954c8a8a16dae98829c51cf9da4be.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 f7d0747..946d12c 100755 --- a/.local/bin/dmenuumount +++ b/.local/bin/dmenuumount @@ -26,7 +26,7 @@ asktype() { \ esac } -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}') +drives=$(lsblk -nrpo "name,type,size,mountpoint,label" | awk -F':' '{gsub(/ /,":")}$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 |
