summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-06-27 13:24:00 -0400
committerLuke Smith <luke@lukesmith.xyz>2022-06-27 13:24:00 -0400
commit02ed243b58a38a0e3233b122c89cc90c9a534659 (patch)
treee4e55cc0859ce15b73a75debcf30bd9ea4d0faed /.local
parentc9a91ef80107e27e4cf51d7424491c7e8aac70f5 (diff)
parent965a1dcad234ebeca20641f625947d51c0c07625 (diff)
downloadeibhear-02ed243b58a38a0e3233b122c89cc90c9a534659.tar.gz
eibhear-02ed243b58a38a0e3233b122c89cc90c9a534659.tar.zst
eibhear-02ed243b58a38a0e3233b122c89cc90c9a534659.zip
Merge branch 'patch-1' of https://github.com/rsHalford/voidrice into rsHalford-patch-1
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dmenumount2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount
index 3cb1f81..cb0601e 100755
--- a/.local/bin/dmenumount
+++ b/.local/bin/dmenumount
@@ -50,7 +50,7 @@ asktype() { \
}
anddrives=$(simple-mtpfs -l 2>/dev/null)
-usbdrives="$(lsblk -rpo "name,type,size,mountpoint" | grep 'part\|rom' | awk '$4==""{printf "%s (%s)\n",$1,$3}')"
+usbdrives="$(lsblk -rpo "name,type,size,label,mountpoint" | grep 'part\|rom' | sed 's/ /:/g' | awk -F':' '$5==""{printf "%s (%s) %s\n",$1,$3,$4}')"
if [ -z "$usbdrives" ]; then
[ -z "$anddrives" ] && echo "No USB drive or Android device detected" && exit