diff --git a/.build/vendor-build.sh b/.build/vendor-build.sh index a9241ac43..dd1fcecbd 100755 --- a/.build/vendor-build.sh +++ b/.build/vendor-build.sh @@ -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. # @@ -35,7 +39,7 @@ function findGlideLock() { return fi - findGlideLock "$(realpath --no-symlinks "$1/..")" + findGlideLock "$(abspath "$1/..")" } outputDir="$1"