@@ -7,7 +7,7 @@ VERSION_PREFIX=5.0
7
7
# See https://github.com/dotnet/source-build/issues/579, this version
8
8
# needs to be compatible with the runtime produced from source-build
9
9
DEV_CERTS_VERSION_DEFAULT=5.0.0-preview.3
10
- __ROOT_REPO=$( cat " $SCRIPT_ROOT /artifacts/obj/rootrepo.txt" | sed ' s/\r$// ' ) # remove CR if mounted repo on Windows drive
10
+ __ROOT_REPO=$( sed ' s/\r$// ' " $SCRIPT_ROOT /artifacts/obj/rootrepo.txt" ) # remove CR if mounted repo on Windows drive
11
11
executingUserHome=${HOME:- }
12
12
13
13
echo " RID to test: ${targetRid?not specified. Use ./ build.sh --run-smoke-test to detect RID, or specify manually.} "
@@ -91,9 +91,9 @@ while :; do
91
91
break
92
92
fi
93
93
94
- lowerI=" $( echo $1 | awk ' {print tolower($0)}' ) "
94
+ lowerI=" $( echo " $1 " | awk ' {print tolower($0)}' ) "
95
95
case $lowerI in
96
- - ? |-h|--help)
96
+ ' -? ' |-h|--help)
97
97
usage
98
98
exit 0
99
99
;;
@@ -215,7 +215,7 @@ function doCommand() {
215
215
elif [[ " $1 " == " run" && " $proj " =~ ^(web| mvc| webapi| razor| blazorwasm| blazorserver)$ ]]; then
216
216
# A separate log file that we will over-write all the time.
217
217
exitLogFile=" $testingDir /exitLogFile"
218
- echo > $exitLogFile
218
+ echo > " $exitLogFile "
219
219
# Run an application in the background and redirect its
220
220
# stdout+stderr to a separate process (tee). The tee process
221
221
# writes its input to 2 files:
@@ -245,7 +245,7 @@ function doCommand() {
245
245
elif [ " $1 " == " multi-rid-publish" ]; then
246
246
runPublishScenarios () {
247
247
" ${dotnetCmd} " publish --self-contained false /bl:" ${binlogPrefix} publish-fx-dep.binlog"
248
- " ${dotnetCmd} " publish --self-contained true -r $targetRid /bl:" ${binlogPrefix} publish-self-contained-${targetRid} .binlog"
248
+ " ${dotnetCmd} " publish --self-contained true -r " $targetRid " /bl:" ${binlogPrefix} publish-self-contained-${targetRid} .binlog"
249
249
" ${dotnetCmd} " publish --self-contained true -r linux-x64 /bl:" ${binlogPrefix} publish-self-contained-portable.binlog"
250
250
}
251
251
if [ " $projectOutput " == " true" ]; then
@@ -396,7 +396,7 @@ echo "<Project />" | tee Directory.Build.props > Directory.Build.targets
396
396
# Unzip dotnet if the dotnetDir is not specified
397
397
if [ " $dotnetDir " == " " ]; then
398
398
OUTPUT_DIR=" $SCRIPT_ROOT /artifacts/$buildArch /$configuration /"
399
- DOTNET_TARBALL=" $( ls ${OUTPUT_DIR} dotnet-sdk- ${ VERSION_PREFIX}* ) "
399
+ DOTNET_TARBALL=" $( ls " ${OUTPUT_DIR}${TARBALL_PREFIX}${ VERSION_PREFIX} " * ) "
400
400
401
401
mkdir -p " $cliDir "
402
402
tar xzf " $DOTNET_TARBALL " -C " $cliDir "
@@ -415,7 +415,7 @@ export NUGET_PACKAGES="$restoredPackagesDir"
415
415
SOURCE_BUILT_PKGS_PATH=" $SCRIPT_ROOT /artifacts/obj/$buildArch /$configuration /blob-feed/packages/"
416
416
export DOTNET_ROOT=" $dotnetDir "
417
417
# OSX also requires DOTNET_ROOT to be on the PATH
418
- if [ ` uname` == ' Darwin' ]; then
418
+ if [ " $( uname) " == ' Darwin' ]; then
419
419
export PATH=" $dotnetDir :$PATH "
420
420
fi
421
421
0 commit comments