Created
March 17, 2023 12:17
-
-
Save chunkydotdev/df7043f81bd77551e7a1cc55582e04d6 to your computer and use it in GitHub Desktop.
Polls the local git-repository for changes and updates if any are found
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
cd /home/dev/bunny-game-api | |
[ $(git rev-parse HEAD) = $(git ls-remote $(git rev-parse --abbrev-ref @{u} | \ | |
sed 's/\// /g') | cut -f1) ] && echo up to date || (git pull && docker compose up -d --build api database) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment