From 293f33d76ffac9e6c64399d35ee569034fd7712a Mon Sep 17 00:00:00 2001 From: Jonatan Pedersen Date: Tue, 13 Sep 2016 14:07:33 +0200 Subject: [PATCH] tries to fix path --- bin/compile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/compile b/bin/compile index 0d189bc..5316fcb 100644 --- a/bin/compile +++ b/bin/compile @@ -1,13 +1,12 @@ #!/usr/bin/env bash ENV_DIR=${3:-} +build_dir=${1:-} npmrc="$(cat $ENV_DIR/NPMRC)" if [ "$npmrc" != "" ]; then echo "-----> Using NPMRC" - ln -s "$1/.npmrc" "$HOME/.npmrc" - echo "$ssh_key" > "$HOME/.npmrc" - + echo "$npmrc" > "$build_dir/.npmrc" exit 0 else echo "-----> No NPMRC"