diff --git a/.scripts/dmenumount b/.scripts/dmenumount index fe8865ce..6e3ecd0b 100755 --- a/.scripts/dmenumount +++ b/.scripts/dmenumount @@ -37,7 +37,7 @@ asktype() { \ } anddrives=$(simple-mtpfs -l 2>/dev/null) -usbdrives="$(lsblk -rpo "name,type,size,mountpoint,label" | awk -F'[ ]' '$2=="part" && $4=="" printf("%s %s (%s)\n",$5,$1,$3)}')" +usbdrives="$(lsblk -rpo "name,type,size,mountpoint,label" | awk -F'[ ]' '$2=="part" && $4=="" {printf "%s %s (%s)\n",$5,$1,$3}')" if [ -z "$usbdrives" ]; then [ -z "$anddrives" ] && echo "No USB drive or Android device detected" && exit echo "Android device(s) detected."