Allow nuget packages to be configured

This commit is contained in:
Karthik Rajasekaran 2017-03-15 17:04:50 -07:00
parent ed145b37a6
commit 54df3398ea
2 changed files with 4 additions and 2 deletions

View file

@ -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)
{

View file

@ -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=( "$@" )