fix some bugss
Took 23 minutes
This commit is contained in:
24
update.sh
24
update.sh
@ -1,17 +1,19 @@
|
||||
#!/bin/bash
|
||||
cd /home/itender/itender || exit -1
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
git pull "https://tobiash:!IwedwrimmVeudiweN!@git.gaminggeneration.de/tobiash/itender.git" --quiet
|
||||
./update.sh true
|
||||
if [ -z "$1" ]; then
|
||||
git pull "https://tobiash:!IwedwrimmVeudiweN!@git.gaminggeneration.de/tobiash/itender.git" --quiet
|
||||
exit 1
|
||||
./update.sh true
|
||||
else
|
||||
yarn
|
||||
yarn run compile
|
||||
cd ./arduino/itender/
|
||||
arduino-cli compile --fqbn arduino:avr:mega itender.ino || true
|
||||
sudo systemctl stop itender
|
||||
timeout 40 arduino-cli upload --port /dev/ttyACM0 --fqbn arduino:avr:mega itender.ino || true
|
||||
sudo systemctl start itender
|
||||
yarn
|
||||
yarn run compile
|
||||
cd ./arduino/itender/
|
||||
arduino-cli compile --fqbn arduino:avr:mega itender.ino || true
|
||||
sudo systemctl stop itender
|
||||
sleep 1
|
||||
timeout 30 arduino-cli upload --port /dev/ttyACM0 --fqbn arduino:avr:mega itender.ino
|
||||
sleep 1
|
||||
sudo systemctl start itender
|
||||
fi
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user