mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 09:31:08 +08:00
[bootstrap.sh] Fix whitespace-in-path issues
This commit is contained in:
parent
6294c6af84
commit
52f01eefa6
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
vcpkgRootDir=$(X= cd -- "$(dirname -- "$0")" && pwd -P)
|
||||
. $vcpkgRootDir/scripts/bootstrap.sh
|
||||
. "$vcpkgRootDir/scripts/bootstrap.sh"
|
||||
|
@ -97,7 +97,7 @@ fetchTool()
|
||||
return 1
|
||||
fi
|
||||
|
||||
xmlFileAsString=`cat $vcpkgRootDir/scripts/vcpkgTools.xml`
|
||||
xmlFileAsString=`cat "$vcpkgRootDir/scripts/vcpkgTools.xml"`
|
||||
toolRegexStart="<tool name=\"$tool\" os=\"$os\">"
|
||||
toolData="$(extractStringBetweenDelimiters "$xmlFileAsString" "$toolRegexStart" "</tool>")"
|
||||
if [ "$toolData" = "" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user