mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
Apply @workpadwan 's fix to bootstrap.sh on non-bash systems. (#19911)
This commit is contained in:
parent
8791fbac5d
commit
4934cb4099
@ -165,10 +165,11 @@ fetchTool()
|
||||
xmlFileAsString=`cat "$vcpkgRootDir/scripts/vcpkgTools.xml"`
|
||||
toolRegexStart="<tool name=\"$tool\" os=\"$os\">"
|
||||
toolData="$(extractStringBetweenDelimiters "$xmlFileAsString" "$toolRegexStart" "</tool>")"
|
||||
if [ "$toolData" = "" ] || [[ "$toolData" == "<?xml"* ]]; then
|
||||
case "$toolData" in
|
||||
"" | "<!xml"*)
|
||||
echo "No entry for $toolRegexStart in $vcpkgRootDir/scripts/vcpkgTools.xml"
|
||||
return 1
|
||||
fi
|
||||
esac
|
||||
|
||||
version="$(extractStringBetweenDelimiters "$toolData" "<version>" "</version>")"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user