Skip to content

Commit 1cfb52e

Browse files
committed
vckpg_install.bat: only clone vcpkg when not available already
When developing locally, folks might want to run vcpkg_install.bat multiple times. When the vcpkg folder is already present, cloning it will obviously fail. We would probably prefer to only clone it when it's not already present. Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
1 parent 3e9d79f commit 1cfb52e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

compat/vcbuild/vcpkg_install.bat

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ REM ================================================================
4949
echo "***"
5050
EXIT /B 1 )
5151

52-
echo Fetching vcpkg in %cwd%vcpkg
53-
git.exe clone https://github.com/Microsoft/vcpkg vcpkg
54-
IF ERRORLEVEL 1 ( EXIT /B 1 )
52+
IF NOT EXIST vcpkg (
53+
echo Fetching vcpkg in %cwd%vcpkg
54+
git.exe clone https://github.com/Microsoft/vcpkg vcpkg
55+
IF ERRORLEVEL 1 ( EXIT /B 1 )
56+
)
5557

5658
cd vcpkg
5759
echo Building vcpkg

0 commit comments

Comments
 (0)