12 lines
413 B
Bash
Executable File
12 lines
413 B
Bash
Executable File
#!/bin/bash
|
|
cd /home/itender/itender || exit -1
|
|
git pull "https://tobiash:!IwedwrimmVeudiweN!@git.gaminggeneration.de/tobiash/itender.git" --quiet
|
|
yarn
|
|
yarn run compile
|
|
cd ./arduino/itender/
|
|
arduino-cli compile --fqbn arduino:avr:mega itender.ino || true
|
|
sudo systemctl stop itender
|
|
timeout 30 arduino-cli upload --port /dev/ttyACM0 --fqbn arduino:avr:mega itender.ino || true
|
|
sudo systemctl start itender
|
|
exit 0
|