From 0916a832da9d0932159777bbe3ddbe13b9c19c9c Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Tue, 26 Jun 2018 18:22:46 -0700 Subject: [PATCH] Fix sync.sh to call run.exe -p even if positional parameters are specified after --. Commit migrated from https://github.com/dotnet/coreclr/commit/b45be1f57aad2197cebed21c025a69ac3fe8ebad --- src/coreclr/sync.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coreclr/sync.sh b/src/coreclr/sync.sh index ab0fb57..8d8b167 100755 --- a/src/coreclr/sync.sh +++ b/src/coreclr/sync.sh @@ -13,7 +13,9 @@ working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" unprocessedBuildArgs= # Parse arguments -if [ $# == 0 ]; then +# Assume the default '-p' argument if the only arguments specified are specified after double dash. +# Only position parameters can be specified after the double dash. +if [ $# == 0 ] || [ $1 == '--' ]; then buildArgs="-p" fi -- 2.7.4