Merge pull request #7 from conorwalsh/master

Ensure that git repo is available before running
This commit is contained in:
Conor Walsh 2020-10-24 14:57:09 +01:00 committed by GitHub
commit 7a55d84f31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,9 @@
# ensure we are in the correct directory
cd /var/www/renew
# check the repo is available
git ls-remote http://github.com/ULCompSoc/skynet.ie-renew.git -q || { echo 'Repo not available' ; exit 1; }
# delete all files in directory except for this script
ls | grep -v update-renew-from-github.sh | xargs rm -rf --