mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 11:28:59 +08:00
bootstrap.sh: fails if there is no entry for a tool os combination (#19640)
This commit is contained in:
parent
de623488c7
commit
8602e5facb
@ -165,8 +165,8 @@ fetchTool()
|
||||
xmlFileAsString=`cat "$vcpkgRootDir/scripts/vcpkgTools.xml"`
|
||||
toolRegexStart="<tool name=\"$tool\" os=\"$os\">"
|
||||
toolData="$(extractStringBetweenDelimiters "$xmlFileAsString" "$toolRegexStart" "</tool>")"
|
||||
if [ "$toolData" = "" ]; then
|
||||
echo "Unknown tool: $tool"
|
||||
if [ "$toolData" = "" ] || [[ "$toolData" == "<?xml"* ]]; then
|
||||
echo "No entry for $toolRegexStart in $vcpkgRootDir/scripts/vcpkgTools.xml"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user