Update updater
This commit is contained in:
parent
b05b111140
commit
07b52fc2fb
@ -1,11 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd /home/itender/itender || exit -1
|
cd /home/itender/itender || exit -1
|
||||||
|
|
||||||
|
if [ -z "$1" ]
|
||||||
|
then
|
||||||
git pull "https://tobiash:!IwedwrimmVeudiweN!@git.gaminggeneration.de/tobiash/itender.git" --quiet
|
git pull "https://tobiash:!IwedwrimmVeudiweN!@git.gaminggeneration.de/tobiash/itender.git" --quiet
|
||||||
|
else
|
||||||
yarn
|
yarn
|
||||||
yarn run compile
|
yarn run compile
|
||||||
cd ./arduino/itender/
|
cd ./arduino/itender/
|
||||||
arduino-cli compile --fqbn arduino:avr:mega itender.ino || true
|
arduino-cli compile --fqbn arduino:avr:mega itender.ino || true
|
||||||
sudo systemctl stop itender
|
sudo systemctl stop itender
|
||||||
timeout 30 arduino-cli upload --port /dev/ttyACM0 --fqbn arduino:avr:mega itender.ino || true
|
timeout 40 arduino-cli upload --port /dev/ttyACM0 --fqbn arduino:avr:mega itender.ino || true
|
||||||
sudo systemctl start itender
|
sudo systemctl start itender
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user