diff options
| author | autoantwort <41973254+autoantwort@users.noreply.github.com> | 2021-08-30 18:50:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-30 09:50:49 -0700 |
| commit | 8602e5facbc255cff84f0101cac150bb74296e20 (patch) | |
| tree | 41b6f419f14fa5ba5e669d87be5c9ef5899fabcc /scripts | |
| parent | de623488c7d9ab90328ec447f241dfff172b1c45 (diff) | |
| download | vcpkg-8602e5facbc255cff84f0101cac150bb74296e20.tar.gz vcpkg-8602e5facbc255cff84f0101cac150bb74296e20.zip | |
bootstrap.sh: fails if there is no entry for a tool os combination (#19640)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/bootstrap.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 1a3253ec9..a20fcb392 100644 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -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 |
