Changeset - 2aaea4b783c6
[Not reviewed]
0 1 0
Brett Smith (brett) - 21 months ago 2019-11-23 14:14:45
brett@sfconservancy.org
website-update: Don't define SITEDIR in the script.

Prefer setting WorkingDirectory.
1 file changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
cron/scripts/website-update.sh
Show inline comments
...
 
@@ -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
0 comments (0 inline, 0 general)