File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ if [ "$1" == "$MODE_HELP" ]; then
4343 runModule help
4444fi
4545
46+ # TODO Disable this option if platform is not EV3BRICK
4647CREDENTIAL=" "
4748if [ " $1 " == " $MODE_JDK " ]; then
4849 CREDENTIAL=$2
Original file line number Diff line number Diff line change 22
33function installBatteryMonitor() {
44 cd /home/robot
5- wget https://github.com/ev3dev-lang-java/batteryMonitor/raw/develop/ releases/batteryMonitor-0.2.0-SNAPSHOT .zip
5+ wget https://github.com/ev3dev-lang-java/batteryMonitor/raw/release/v0.2.0-RELEASE/ releases/batteryMonitor-0.2.0-RELEASE .zip
66
7+ # TODO Move block to function
78 isInstalled unzip
89 if [ " $INSTALLED " == " $INSTALLED_NO " ]; then
910 if [ " $PLATFORM " == " $EV3 " ]; then
@@ -19,8 +20,9 @@ function installBatteryMonitor() {
1920
2021 fi
2122
22- unzip batteryMonitor-0.2.0-SNAPSHOT.zip
23- mv batteryMonitor-0.2.0-SNAPSHOT batteryMonitor
23+ # TODO Move to a function
24+ unzip batteryMonitor-0.2.0-RELEASE.zip
25+ mv batteryMonitor-0.2.0-RELEASE batteryMonitor
2426 cd batteryMonitor
2527 chmod +x ./start.sh
2628 chmod +x ./stop.sh
@@ -30,7 +32,6 @@ function installBatteryMonitor() {
3032 update-rc.d batteryMonitor-service.sh defaults
3133 cd /home/robot/batteryMonitor
3234 ./start.sh
33- ps aux | grep java
3435}
3536
3637if [ " $PLATFORM " == " $UNKNOWN " ]; then
You can’t perform that action at this time.
0 commit comments