Skip to content

Commit 2da7a45

Browse files
committed
modify build-site.sh to build /site directory
1 parent 6fb79a0 commit 2da7a45

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

build-site.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@
33
set -e
44

55
HUGO=hugo
6-
# HUGO.0.81.0=${2:-hugo-0.81.0-ext}
76

8-
REPO=${1:-uvarc/rc-website}
9-
REPODIR=${REPO##*/}
10-
11-
git clone --depth=50 --branch=$BRANCH https://github.com/${REPO}.git
12-
cd ${REPODIR}
7+
cd /site
138
mkdir public
149

1510
if [ -f static/js/scripts.js ]; then
@@ -22,11 +17,6 @@ if [ -f static/js/user-session.js ]; then
2217
yuicompressor --type js static/js/user-session.js > static/js/user-session.min.js
2318
fi
2419

25-
echo "-------------"
26-
echo $REPO
27-
echo $BRANCH
28-
echo "-------------"
29-
3020
EXPIRES=`date '+%a, %d %b %Y %H:%M:%S GMT' -d "+1 day"`
3121
echo "EXPIRES header set to: " $EXPIRES
3222

0 commit comments

Comments
 (0)