Update Linux flash script

Miwer commented in issue #11 that on Mint 17.3 lsblk does not escape
potentially unsafe characters like it does on Fedora (lsblk v2.32.1). So
broaden the grep match expression to catch both posibilities.
This commit is contained in:
Alex Wigen
2019-11-30 23:21:04 +10:00
parent a3faa9fa4a
commit a596ffd5e4

2
Flashing/flash_ts100_linux.sh Normal file → Executable file
View File

@@ -37,7 +37,7 @@ function enable_gautomount {
}
function is_attached {
output=`lsblk -b --raw --output NAME,MODEL | grep 'DFU\\\\x20Disk'`
output=`lsblk -b --raw --output NAME,MODEL | grep 'DFU.*Disk'`
if [ $? -ne 0 ]; then
return 1
fi