Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions utils/init-submodules-release.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/bin/bash
set -euo pipefail

source ./safeCommandsSet.sh
if (git submodule status 2>&1 || true) | grep -iq "fatal: Not a git repository (or any of the parent directories): .git"; then
pushd "$(dirname "$0")"/../external/

if git submodule status 2>&1 | grep -iq "fatal: Not a git repository (or any of the parent directories): .git"; then
git clone --no-checkout https://github.com/nlohmann/json.git
pushd json/
git checkout v3.12.0
popd

safe_cd "$(dirname "$0")"/../external/
git clone --no-checkout https://github.com/pboettch/json-schema-validator.git
pushd json-schema-validator/
git checkout 2.3.0
popd

git clone --no-checkout https://github.com/nlohmann/json.git
safe_cd json/
git checkout v3.11.3
safe_cd -

git clone --no-checkout https://github.com/pboettch/json-schema-validator.git
safe_cd json/
git checkout 2.3.0
safe_cd -

else git submodule update --init;
popd
else
git submodule update --init;
fi
Loading