Created
January 19, 2023 22:54
-
-
Save joho/ef9dd553543a2f318191139d8838a340 to your computer and use it in GitHub Desktop.
real bare bones git deploy script to klipper/mainsail on a pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euxo pipefail | |
git push | |
ssh switchy '(cd klipper_config && git pull && echo FIRMWARE_RESTART > /tmp/printer)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment