0 1 0
Brett Smith (brett) - 12 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:
↑ Collapse Diff ↑
...
 
@@ -3,7 +3,6 @@
3 3
 
set -e
4 4
 
set -u
5 5
 

	
6
 
SITEDIR=~/website
7 6
 
PRODUCTION_BRANCH=master
8 7
 

	
9 8
 
git_rev_name() {
...
 
@@ -12,7 +11,6 @@ git_rev_name() {
12 11
 

	
13 12
 
# If the checkout is not on the production branch,
14 13
 
# assume maintenance is happening and stop.
15
 
cd "$SITEDIR"
16 14
 
if [ "$(git_rev_name HEAD)" != "$PRODUCTION_BRANCH" ]; then
17 15
 
    exit 0
18 16
 
fi
0 comments (0 inline, 0 general)