summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmenuumount
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-10-02 11:53:40 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-10-02 11:53:40 -0400
commit163738e6ad1954c8a8a16dae98829c51cf9da4be (patch)
tree8742b1c2f7751abf47886aeea6622eabe81c464a /.local/bin/dmenuumount
parenta3a630a3e839a730d26a137f35cce2065bbbb16f (diff)
parent162ed8889b9893b790ca529e564d976f8190e3f3 (diff)
downloadeibhear-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/dmenuumount2
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