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