container-server/setup/cron/daily/git-pull

8 lines
167 B
Text
Raw Normal View History

2024-01-27 14:43:50 +01:00
#!/bin/sh
SERVER_DIR=/opt/container-server
cd $SERVER_DIR
# Do a git pull but only log if anything was updated.
git pull | grep -v "Already up to date." || return 0