From 17a1899b49a07aa497ab014f648c45bd17a7fd37 Mon Sep 17 00:00:00 2001 From: Nick Hastings Date: Sun, 7 Jul 2024 11:15:14 -0400 Subject: [PATCH] checkout-deps: change mock sdk download to be optional, using same sdk list --- tools/checkout-deps.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/checkout-deps.sh b/tools/checkout-deps.sh index 2d29b5221..3769251bd 100755 --- a/tools/checkout-deps.sh +++ b/tools/checkout-deps.sh @@ -144,8 +144,13 @@ else cd .. fi +want_mock_sdk=0 for sdk in "${sdks[@]}" do + if [ "$sdk" == "mock" ]; then + want_mock_sdk=1 + continue + fi repo=hl2sdk-proxy-repo origin="https://github.com/alliedmodders/hl2sdk" name=hl2sdk-$sdk @@ -153,11 +158,13 @@ do checkout done +if [ $want_mock_sdk -eq 1 ]; then name=hl2sdk-mock branch=master repo="https://github.com/alliedmodders/hl2sdk-mock" origin= checkout +fi python_cmd=`command -v python3` if [ -z "$python_cmd" ]; then