summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetar Tomić <tomicp@gmail.com>2020-06-29 16:02:18 +0200
committerGitHub <noreply@github.com>2020-06-29 10:02:18 -0400
commit49b858c267f2a1528499d9e61794a2f825787f06 (patch)
treebe96203559a15722f978f90642af4ed5f801d528
parent2578719227ad51afcc2a0b69e56a0a0c4166e704 (diff)
downloadeibhear-49b858c267f2a1528499d9e61794a2f825787f06.tar.gz
eibhear-49b858c267f2a1528499d9e61794a2f825787f06.tar.zst
eibhear-49b858c267f2a1528499d9e61794a2f825787f06.zip
fix dmenumount (#735)
-rwxr-xr-x.local/bin/dmenumount2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount
index 75e11b5..488522a 100755
--- a/.local/bin/dmenumount
+++ b/.local/bin/dmenumount
@@ -49,7 +49,7 @@ asktype() { \
}
anddrives=$(simple-mtpfs -l 2>/dev/null)
-usbdrives="$(lsblk -rpo "name,type,size,mountpoint" | awk '$4==""{printf "%s (%s)\n",$1,$3}')"
+usbdrives="$(lsblk -rpo "name,type,size,mountpoint" | grep 'part\|rom' | awk '$4==""{printf "%s (%s)\n",$1,$3}')"
if [ -z "$usbdrives" ]; then
[ -z "$anddrives" ] && echo "No USB drive or Android device detected" && exit