mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 00:18:59 +08:00
Enabled using bootstrap.sh from any msys2 bash env. (#41779)
This commit is contained in:
parent
3de07eb09f
commit
36caac1012
@ -36,9 +36,9 @@ do
|
||||
fi
|
||||
done
|
||||
|
||||
# Enable using this entry point on windows from git bash by redirecting to the .bat file.
|
||||
unixName=$(uname -s | sed 's/MINGW.*_NT.*/MINGW_NT/')
|
||||
if [ "$unixName" = "MINGW_NT" ]; then
|
||||
# Enable using this entry point on Windows from an msys2 or cygwin bash env. (e.g., git bash) by redirecting to the .bat file.
|
||||
unixKernelName=$(uname -s | sed -E 's/(CYGWIN|MINGW|MSYS).*_NT.*/\1_NT/')
|
||||
if [ "$unixKernelName" = CYGWIN_NT ] || [ "$unixKernelName" = MINGW_NT ] || [ "$unixKernelName" = MSYS_NT ]; then
|
||||
if [ "$vcpkgDisableMetrics" = "ON" ]; then
|
||||
args="-disableMetrics"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user