install.sh script for system image bundle
(not sure if this is best place to report this)
Using modalai-3-2-0-0.2.0.tar.gz
from https://developer.modalai.com/asset on Ubuntu 20.04
Followed https://docs.modalai.com/flash-system-image/ and ran ./install.sh
Got
plusk01 ~/voxl/modalai-3-2-0-0.2.0 $ ./install.sh
[INFO] adb installed
plusk01 ~/voxl/modalai-3-2-0-0.2.0 $
silent failure - should probably change the [ -f $FILE ]
conditions in the following to command -v adb
and command -v fastboot
(https://stackoverflow.com/a/677212/2392520).
I didn't have fastboot
installed and since set -e
is set at the top of the script, the line FILE=$(which fastboot)
causes the script to exit (because which fastboot
returns non-zero)
87 FILE=$(which adb)
88 if [ -f $FILE ]; then
89 echo "[INFO] adb installed"
90 else
91 echo ""
92 echo "[Error]: android-tools-adb missing, use: apt-get install android-tools-adb"
93 echo ""
94 exit 1
95 fi
96
97 FILE=$(which fastboot)
98 if [ -f $FILE ]; then
99 echo "[INFO] fastboot installed"
100 else
101 echo ""
102 echo "[Error]: android-tools-fastboot missing, use: apt-get install android-tools-fastboot"
103 echo ""
104 exit 1
105 fi
Edited by Parker Lusk