Skip to content

Instantly share code, notes, and snippets.

@joho
Created January 19, 2023 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joho/ef9dd553543a2f318191139d8838a340 to your computer and use it in GitHub Desktop.
Save joho/ef9dd553543a2f318191139d8838a340 to your computer and use it in GitHub Desktop.
real bare bones git deploy script to klipper/mainsail on a pi
#!/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