checkout-deps: change mock sdk download to be optional, using same sdk list

This commit is contained in:
Nick Hastings
2024-07-07 11:15:14 -04:00
parent ef9d2fda9d
commit ae789148b1
+7
View File
@@ -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