From a596ffd5e4150450c91cf0cd88df152cd819b13f Mon Sep 17 00:00:00 2001 From: Alex Wigen Date: Sat, 30 Nov 2019 23:21:04 +1000 Subject: [PATCH] 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. --- Flashing/flash_ts100_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 Flashing/flash_ts100_linux.sh diff --git a/Flashing/flash_ts100_linux.sh b/Flashing/flash_ts100_linux.sh old mode 100644 new mode 100755 index 5fac37ba..2179ee8e --- a/Flashing/flash_ts100_linux.sh +++ b/Flashing/flash_ts100_linux.sh @@ -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