From f5445db4cdd65da7411c66ef3276274b7bcb70cc Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Fri, 9 Oct 2015 17:34:20 -0700 Subject: [PATCH] tools: use absolute paths in test-npm Updated test-npm to use absolute paths for tmp/cache/prefix PR-URL: https://github.com/nodejs/node/pull/3309 Reviewed-By: Rod Vagg Reviewed-By: Jeremiah Senkpiel --- tools/test-npm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/test-npm.sh b/tools/test-npm.sh index 62929ee8ccc94f..8fa8731b5ee7a1 100755 --- a/tools/test-npm.sh +++ b/tools/test-npm.sh @@ -23,10 +23,10 @@ cd test-npm rm -rf npm-cache npm-tmp npm-prefix mkdir npm-cache npm-tmp npm-prefix -# set some npm env varibles to point to our new temporary folders -export npm_config_cache="npm-cache" -export npm_config_prefix="npm-prefix" -export npm_config_tmp="npm-tmp" +# set some npm env variables to point to our new temporary folders +export npm_config_cache="$(pwd)/npm-cache" +export npm_config_prefix="$(pwd)/npm-prefix" +export npm_config_tmp="$(pwd)/npm-tmp" # install npm devDependencies and run npm's tests