Skip to content

Commit

Permalink
Merge branch 'dmenumount-filter-parents' of https://github.com/Prof-B…
Browse files Browse the repository at this point in the history
…loodstone/voidrice into Prof-Bloodstone-dmenumount-filter-parents
  • Loading branch information
LukeSmithxyz committed Jun 27, 2022
2 parents bc67fd7 + fe9be01 commit 545355d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .local/bin/dmenumount
Expand Up @@ -50,7 +50,7 @@ asktype() { \
}

anddrives=$(simple-mtpfs -l 2>/dev/null)
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}')"
usbdrives="$(lsblk -rpo "name,type,size,label,mountpoint,fstype" | grep -v crypto_LUKS | 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
Expand Down

0 comments on commit 545355d

Please sign in to comment.