diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2015-04-02 00:56:32 +0100 |
---|---|---|
committer | Timo Tijhof <krinklemail@gmail.com> | 2015-04-02 01:02:18 +0100 |
commit | 95e9d238325ed31f38d5ca27f78d6262013fbc37 (patch) | |
tree | ad7c21cc4d69a14100c88dfa8ce97b7c65b281ab | |
parent | e1fe0ef1483d71536be2218006e138bb79e32796 (diff) | |
download | zuul-95e9d238325ed31f38d5ca27f78d6262013fbc37.tar.gz |
Status: Use $DEST_DIR instead of $BASE_DIR/public_html
Change-Id: Id3c47d4d5b70ff36098d1a9d1472e6a6fb2e89d3
-rwxr-xr-x | etc/status/fetch-dependencies.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/etc/status/fetch-dependencies.sh b/etc/status/fetch-dependencies.sh index b31d0de5f..24beb4c04 100755 --- a/etc/status/fetch-dependencies.sh +++ b/etc/status/fetch-dependencies.sh @@ -1,21 +1,22 @@ #!/bin/bash BASE_DIR=$(cd $(dirname $0); pwd) -echo "Destination: $BASE_DIR/public_html" +DEST_DIR=$BASE_DIR/public_html +echo "Destination: $DEST_DIR" echo "Fetching jquery.min.js..." -curl -L --silent http://code.jquery.com/jquery.min.js > $BASE_DIR/public_html/jquery.min.js +curl -L --silent http://code.jquery.com/jquery.min.js > $DEST_DIR/jquery.min.js echo "Fetching jquery-visibility.min.js..." -curl -L --silent https://raw.githubusercontent.com/mathiasbynens/jquery-visibility/master/jquery-visibility.js > $BASE_DIR/public_html/jquery-visibility.js +curl -L --silent https://raw.githubusercontent.com/mathiasbynens/jquery-visibility/master/jquery-visibility.js > $DEST_DIR/jquery-visibility.js echo "Fetching jquery.graphite.js..." curl -L --silent https://github.com/prestontimmons/graphitejs/archive/master.zip > jquery-graphite.zip -unzip -q -o jquery-graphite.zip -d $BASE_DIR/public_html/ -mv $BASE_DIR/public_html/graphitejs-master/jquery.graphite.js $BASE_DIR/public_html/ -rm -R jquery-graphite.zip $BASE_DIR/public_html/graphitejs-master +unzip -q -o jquery-graphite.zip -d $DEST_DIR/ +mv $DEST_DIR/graphitejs-master/jquery.graphite.js $DEST_DIR/ +rm -R jquery-graphite.zip $DEST_DIR/graphitejs-master echo "Fetching bootstrap..." curl -L --silent https://github.com/twbs/bootstrap/releases/download/v3.1.1/bootstrap-3.1.1-dist.zip > bootstrap.zip -unzip -q -o bootstrap.zip -d $BASE_DIR/public_html/ -mv $BASE_DIR/public_html/bootstrap-3.1.1-dist $BASE_DIR/public_html/bootstrap +unzip -q -o bootstrap.zip -d $DEST_DIR/ +mv $DEST_DIR/bootstrap-3.1.1-dist $DEST_DIR/bootstrap rm bootstrap.zip |