From ffe995fbab0b462b532de2ffc39a4f2e1edf59db Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Wed, 6 Jul 2016 16:52:58 -0700 Subject: [PATCH] Reverting the change to run-build.sh to handle additional parameters. I don't want to hold this PR for that work. having CI running is more important. --- run-build.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/run-build.sh b/run-build.sh index 17a6a8089..d7e5cd3bf 100755 --- a/run-build.sh +++ b/run-build.sh @@ -22,24 +22,19 @@ source "$REPOROOT/scripts/common/_prettyprint.sh" # Set nuget package cache under the repo export NUGET_PACKAGES="$REPOROOT/.nuget/packages" -args=( "$0" ) while [[ $# > 0 ]]; do lowerI="$(echo $1 | awk '{print tolower($0)}')" case $lowerI in -c|--configuration) export CONFIGURATION=$2 - args=( "${args[@]/$1}" ) - args=( "${args[@]/$2}" ) shift ;; --nopackage) export DOTNET_BUILD_SKIP_PACKAGING=1 - args=( "${args[@]/$1}" ) ;; --skip-prereqs) # Allow CI to disable prereqs check since the CI has the pre-reqs but not ldconfig it seems export DOTNET_INSTALL_SKIP_PREREQS=1 - args=( "${args[@]/$1}" ) ;; --help) echo "Usage: $0 [--configuration ] [--targets ] [--skip-prereqs] [--nopackage] [--docker ] [--help]" @@ -60,11 +55,6 @@ while [[ $# > 0 ]]; do shift done -# $args array may have empty elements in it. -# The easiest way to remove them is to cast to string and back to array. -temp="${args[@]}" -args=($temp) - # Load Branch Info while read line; do if [[ $line != \#* ]]; then @@ -93,4 +83,4 @@ fi # Disable first run since we want to control all package sources export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 -dotnet build3 build.proj /p:Architecture=$ARCHITECTURE "${args[@]}" \ No newline at end of file +dotnet build3 build.proj /p:Architecture=$ARCHITECTURE \ No newline at end of file