mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
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:
2
Flashing/flash_ts100_linux.sh
Normal file → Executable file
2
Flashing/flash_ts100_linux.sh
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user