mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
Cleaup stale submodule
If the tree has a stale submodule, make sure we clean it up first
This commit is contained in:
@@ -18,6 +18,11 @@ git_module_setup() {
|
|||||||
echo "Skipping submodule initialization"
|
echo "Skipping submodule initialization"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
# Make sure the tree is clean after the directory moves
|
||||||
|
if [ -d "${LLAMACPP_DIR}/gguf" ]; then
|
||||||
|
echo "Cleaning up old submodule"
|
||||||
|
rm -rf ${LLAMACPP_DIR}
|
||||||
|
fi
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update --force ${LLAMACPP_DIR}
|
git submodule update --force ${LLAMACPP_DIR}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user