Skip to content

Commit

Permalink
vendor-build: Work without realpath
Browse files Browse the repository at this point in the history
The realpath command isn't available on Travis
  • Loading branch information
abhinav committed Dec 20, 2016
1 parent 94d567d commit 95d7bc0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .build/vendor-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ if [[ ! -d vendor ]]; then
fi

function die() {
echo "$1"
echo "$1" >&2
exit 1
}

function abspath() {
(cd "$1" || die "Directory $1 does not exist"; pwd)
}

# findGlideLock dir looks for glide.lock in dir or any of its parent
# directories.
#
Expand All @@ -35,7 +39,7 @@ function findGlideLock() {
return
fi

findGlideLock "$(realpath --no-symlinks "$1/..")"
findGlideLock "$(abspath "$1/..")"
}

outputDir="$1"
Expand Down

0 comments on commit 95d7bc0

Please sign in to comment.