Changeset - 2aaea4b783c6
[Not reviewed]
0 1 0
Brett Smith (brett) - 3 years 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
...
 
@@ -5,3 +5,2 @@ set -u
 

	
 
SITEDIR=~/website
 
PRODUCTION_BRANCH=master
...
 
@@ -14,3 +13,2 @@ git_rev_name() {
 
# assume maintenance is happening and stop.
 
cd "$SITEDIR"
 
if [ "$(git_rev_name HEAD)" != "$PRODUCTION_BRANCH" ]; then
0 comments (0 inline, 0 general)