Commit a5230857 authored by zeke's avatar zeke

use absolute path for common.sh

parent 741800c6
#!/usr/bin/env bash
# fail fast # fail fast
set -e set -e
...@@ -7,7 +9,6 @@ set -e ...@@ -7,7 +9,6 @@ set -e
function tar_download() { function tar_download() {
url="$1" url="$1"
location="$2" location="$2"
mkdir -p $location mkdir -p $location
curl $url -s -o - | tar xzf - -C $location curl $url -s -o - | tar xzf - -C $location
} }
......
#!/usr/bin/env bash #!/usr/bin/env bash
source support/helpers.sh
BUILD_DIR=$1 BUILD_DIR=$1
CACHE_DIR=$2 CACHE_DIR=$2
NODE_VERSION='0.10.15' BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
NODE_VERSION="0.10.15"
NODE_URL="http://s3pository.heroku.com/node/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" NODE_URL="http://s3pository.heroku.com/node/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz"
source $BIN_DIR/common.sh
status "Downloading node v$NODE_VERSION" status "Downloading node v$NODE_VERSION"
echo "$NODE_URL" | indent echo "$NODE_URL" | indent
tar_download $NODE_URL tar_download $NODE_URL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment