File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,6 @@ while [ "$vcpkgRootDir" != "/" ] && ! [ -e "$vcpkgRootDir/.vcpkg-root" ]; do
6
6
vcpkgRootDir=" $( dirname " $vcpkgRootDir " ) "
7
7
done
8
8
9
- # Enable using this entry point on windows from git bash by redirecting to the .bat file.
10
- unixName=$( uname -s | sed ' s/MINGW.*_NT.*/MINGW_NT/' )
11
- if [ " $unixName " = " MINGW_NT" ]; then
12
- vcpkgRootDir=$( cygpath -aw " $vcpkgRootDir " )
13
- cmd " /C $vcpkgRootDir \\ bootstrap-vcpkg.bat" || exit 1
14
- exit 0
15
- fi
16
-
17
9
# Argument parsing
18
10
vcpkgDisableMetrics=" OFF"
19
11
vcpkgUseSystem=false
41
33
fi
42
34
done
43
35
36
+ # Enable using this entry point on windows from git bash by redirecting to the .bat file.
37
+ unixName=$( uname -s | sed ' s/MINGW.*_NT.*/MINGW_NT/' )
38
+ if [ " $unixName " = " MINGW_NT" ]; then
39
+ if [ " $vcpkgDisableMetrics " = " ON" ]; then
40
+ args=" -disableMetrics"
41
+ else
42
+ args=" "
43
+ fi
44
+
45
+ vcpkgRootDir=$( cygpath -aw " $vcpkgRootDir " )
46
+ cmd " /C $vcpkgRootDir \\ bootstrap-vcpkg.bat $args " || exit 1
47
+ exit 0
48
+ fi
49
+
44
50
if [ -z ${VCPKG_DOWNLOADS+x} ]; then
45
51
downloadsDir=" $vcpkgRootDir /downloads"
46
52
else
You can’t perform that action at this time.
0 commit comments