After trying to update lmi to 14.0.2.0 on archlinux I had to change the following lines to make it work.
With the original script it gave me /bin/linux/fastboot not found so I changed:
fastboot=bin/linux/fastboot to fastboot=/bin/fastboot
And with the original script it always returned unknown product so I changed this:
device=$($fastboot getvar product 2>&1 | grep -F "product:" | tr -s " " | cut -d " " -f 2) to device=$(fastboot getvar product 2>&1 | grep -F "product:" | tr -s " " | cut -d " " -f 2)
Now it returns the correct product and the update was successful.
With the original script it gave me /bin/linux/fastboot not found so I changed:
fastboot=bin/linux/fastboot to fastboot=/bin/fastboot
And with the original script it always returned unknown product so I changed this:
device=$($fastboot getvar product 2>&1 | grep -F "product:" | tr -s " " | cut -d " " -f 2) to device=$(fastboot getvar product 2>&1 | grep -F "product:" | tr -s " " | cut -d " " -f 2)
Now it returns the correct product and the update was successful.