Skip to content

Instantly share code, notes, and snippets.

@robertpostill
Last active May 12, 2019 09:30
Show Gist options
  • Save robertpostill/ab940a7bea1622867866b1e7e6c0ae53 to your computer and use it in GitHub Desktop.
Save robertpostill/ab940a7bea1622867866b1e7e6c0ae53 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# Run an arbitary script on the machine
# Where the git repo is, optionally could be set from outside ENV? Not sure how that would work in cron
GIT_DIR=<put your code location here>
cd $GIT_DIR
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment