website-update: Don't define SITEDIR in the script.
Prefer setting WorkingDirectory.
This commit is contained in:
parent
df3eaea616
commit
2aaea4b783
1 changed files with 0 additions and 2 deletions
|
@ -3,7 +3,6 @@
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
SITEDIR=~/website
|
|
||||||
PRODUCTION_BRANCH=master
|
PRODUCTION_BRANCH=master
|
||||||
|
|
||||||
git_rev_name() {
|
git_rev_name() {
|
||||||
|
@ -12,7 +11,6 @@ git_rev_name() {
|
||||||
|
|
||||||
# If the checkout is not on the production branch,
|
# If the checkout is not on the production branch,
|
||||||
# assume maintenance is happening and stop.
|
# assume maintenance is happening and stop.
|
||||||
cd "$SITEDIR"
|
|
||||||
if [ "$(git_rev_name HEAD)" != "$PRODUCTION_BRANCH" ]; then
|
if [ "$(git_rev_name HEAD)" != "$PRODUCTION_BRANCH" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue