This repository has been archived on 2025-06-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
joeac.net-symfony/update_and_restart.sh
2025-06-06 19:19:21 +01:00

12 lines
164 B
Bash
Executable File

#!/bin/sh
set -eux
cd ${LIB_DIR:-/lib}/joeac.net
sudo git fetch origin main
if [[ -z "$(git diff origin/main main)" ]]
then
sudo git pull
./restart.sh
fi