mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Actually tested this time
This commit is contained in:
parent
5fb1bbfe73
commit
78407e06ff
@ -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."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user