diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-11-10 09:37:03 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-11-10 09:37:03 +0800 |
| commit | e190d90594b17fb16849a13198af3f5152414e4c (patch) | |
| tree | c39d24de8f5c7e7ff218faa6d00e87ab8579fe9b /setup.sh | |
| parent | 4af01dcede350f1b682ba7d76681dd87968f1885 (diff) | |
Replace Git submodule with setup script for documents
The .gitmodules file has been removed and replaced with a setup.sh
script that handles cloning the documents repository. This provides more
flexibility than Git submodules while achieving similar results.
The .gitignore has been updated to reflect this change.
Diffstat (limited to 'setup.sh')
| -rwxr-xr-x | setup.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..ac4ecb8 --- /dev/null +++ b/setup.sh @@ -0,0 +1,6 @@ +# Setup documents repo +if [ -d "docs/Documents/.git" ]; then + cd docs/Documents && git pull origin main && cd - +else + git clone https://github.com/JustEnoughVCS/Documents.git docs/Documents +fi |
