Enabled using bootstrap.sh from any msys2 bash env. (#41779)

This commit is contained in:
Jesper Stemann Andersen 2024-10-29 08:24:27 +01:00 committed by GitHub
parent 3de07eb09f
commit 36caac1012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,9 +36,9 @@ do
fi fi
done done
# Enable using this entry point on windows from git bash by redirecting to the .bat file. # Enable using this entry point on Windows from an msys2 or cygwin bash env. (e.g., git bash) by redirecting to the .bat file.
unixName=$(uname -s | sed 's/MINGW.*_NT.*/MINGW_NT/') unixKernelName=$(uname -s | sed -E 's/(CYGWIN|MINGW|MSYS).*_NT.*/\1_NT/')
if [ "$unixName" = "MINGW_NT" ]; then if [ "$unixKernelName" = CYGWIN_NT ] || [ "$unixKernelName" = MINGW_NT ] || [ "$unixKernelName" = MSYS_NT ]; then
if [ "$vcpkgDisableMetrics" = "ON" ]; then if [ "$vcpkgDisableMetrics" = "ON" ]; then
args="-disableMetrics" args="-disableMetrics"
else else