diff --git a/cb-tumblebug b/cb-tumblebug index 0474eb3..0eb9aa4 160000 --- a/cb-tumblebug +++ b/cb-tumblebug @@ -1 +1 @@ -Subproject commit 0474eb3132c022f7f0338cb021995d84d6b86de8 +Subproject commit 0eb9aa44a42b6c3942fecabae67ba55d76ef1b2e diff --git a/update-tumblebug-submodule.sh b/update-tumblebug-submodule.sh index 64c7e38..9a5ef6f 100755 --- a/update-tumblebug-submodule.sh +++ b/update-tumblebug-submodule.sh @@ -1,5 +1,15 @@ #!/bin/bash +# Initialize and update submodule if not already done +if [ ! -d "cb-tumblebug/.git" ]; then + echo "Initializing and updating CB-Tumblebug submodule..." + git submodule update --init --recursive cb-tumblebug + if [ $? -ne 0 ]; then + echo "Error: Failed to initialize submodule" + exit 1 + fi +fi + cd cb-tumblebug || { echo "Error: Failed to enter cb-tumblebug directory."; exit 1; } # Fetch all tags from the remote repository