From 54df3398ea04115aa5bf3e51c2b9e682bece5666 Mon Sep 17 00:00:00 2001 From: Karthik Rajasekaran Date: Wed, 15 Mar 2017 17:04:50 -0700 Subject: [PATCH] Allow nuget packages to be configured --- run-build.ps1 | 4 +++- run-build.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/run-build.ps1 b/run-build.ps1 index 3f2383325..ea77e8983 100644 --- a/run-build.ps1 +++ b/run-build.ps1 @@ -29,7 +29,9 @@ if($Help) $env:CONFIGURATION = $Configuration; $RepoRoot = "$PSScriptRoot" -$env:NUGET_PACKAGES = "$RepoRoot\.nuget\packages" +if(!$env:NUGET_PACKAGES){ + $env:NUGET_PACKAGES = "$RepoRoot\.nuget\packages" +} if($NoPackage) { diff --git a/run-build.sh b/run-build.sh index 25a1fa0d4..9c5c2beb4 100755 --- a/run-build.sh +++ b/run-build.sh @@ -59,7 +59,7 @@ LINUX_PORTABLE_INSTALL_ARGS= CUSTOM_BUILD_ARGS= # Set nuget package cache under the repo -export NUGET_PACKAGES="$REPOROOT/.nuget/packages" +[ -z $NUGET_PACKAGES ] && export NUGET_PACKAGES="$REPOROOT/.nuget/packages" args=( "$@" )