Kill red if still running

This commit is contained in:
Frederik Menke 2024-01-13 22:35:29 +01:00
parent 1e0484cdcd
commit dd76ad51ad

View file

@ -4,8 +4,9 @@ build:
cross build --target=armv7-unknown-linux-gnueabihf
run:
ssh {{url}} "killall red-cross" || echo "Failed to kill process. Maybe it's not running"
scp -r ./target/armv7-unknown-linux-gnueabihf/debug/red {{url}}:red-cross
ssh {{url}} "RUST_BACKTRACE=1 ./red-cross;"
ssh {{url}} "RUST_BACKTRACE=1 ./red-cross"
rdown:
ssh {{url}} "sudo /usr/sbin/poweroff"