From b456668193a344907c2c4dd51606a54a34942cda Mon Sep 17 00:00:00 2001 From: Peter Huene Date: Thu, 21 Dec 2017 12:04:10 -0500 Subject: [PATCH] Fix test environment script to enable sourcing from other shells. The `cli-test-env.sh` script has a `==` comparison operator, which is a non-POSIX extension. This commit replaces it with the `=` POSIX operator, enabling it to be sourced from a wider variety of shells (namely zsh for this commit's author). --- scripts/cli-test-env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cli-test-env.sh b/scripts/cli-test-env.sh index a6b3f3fc1..888200d32 100755 --- a/scripts/cli-test-env.sh +++ b/scripts/cli-test-env.sh @@ -14,7 +14,7 @@ done REPO_ROOT="$( cd -P "$( dirname "$SOURCE" )/../" && pwd )" uname=$(uname) -if [ "$(uname)" == "Darwin" ] +if [ "$(uname)" = "Darwin" ] then RID=osx.10.13-x64 else @@ -31,4 +31,4 @@ export DOTNET_MULTILEVEL_LOOKUP=0 export NUGET_PACKAGES=$REPO_ROOT/.nuget/packages export TEST_PACKAGES=$REPO_ROOT/bin/2/$RID/test/packages export TEST_ARTIFACTS=$REPO_ROOT/bin/2/$RID/test/artifacts -export PreviousStageProps=$REPO_ROOT/bin/2/$RID/PreviousStage.props \ No newline at end of file +export PreviousStageProps=$REPO_ROOT/bin/2/$RID/PreviousStage.props