mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 01:30:55 +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…
x
Reference in New Issue
Block a user