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 -u
|
||||
|
||||
SITEDIR=~/website
|
||||
PRODUCTION_BRANCH=master
|
||||
|
||||
git_rev_name() {
|
||||
|
@ -12,7 +11,6 @@ git_rev_name() {
|
|||
|
||||
# If the checkout is not on the production branch,
|
||||
# assume maintenance is happening and stop.
|
||||
cd "$SITEDIR"
|
||||
if [ "$(git_rev_name HEAD)" != "$PRODUCTION_BRANCH" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue