forked from Skynet/wiki
Ensure that git repo is available before running
This commit is contained in:
parent
ed77852b37
commit
e373a160ba
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@
|
||||||
# ensure we are in the correct directory
|
# ensure we are in the correct directory
|
||||||
cd /var/www/renew
|
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
|
# delete all files in directory except for this script
|
||||||
ls | grep -v update-renew-from-github.sh | xargs rm -rf --
|
ls | grep -v update-renew-from-github.sh | xargs rm -rf --
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue