/
JaneZhibit
/
study-mathmod
Обзор
Документация
Войти
/
JaneZhibit
/
study-mathmod
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
template/config/script/fix-submodules.sh
15 строк
712 B
JaneZhibit
Initial commit
12 фев 2026, 14:50
Верифицирован
12 фев 2026, 14:50
92e6e07
Код
Авторство
О чём код?
#!/bin/bash ### Определяем текущий origin URL ORIGIN_URL=$(git remote get-url origin) if [[ $ORIGIN_URL == *"github.com"* ]]; then git submodule set-url template/report https://github.com/yamadharma/academic-laboratory-report-template.git git submodule set-url template/presentation https://github.com/yamadharma/academic-presentation-markdown-template.git elif [[ $ORIGIN_URL == *"gitverse.ru"* ]]; then git submodule set-url template/report https://gitverse.ru/dharma/academic-laboratory-report-template.git git submodule set-url template/presentation https://gitverse.ru/dharma/academic-presentation-markdown-template.git fi git submodule update --init --recursive git submodule sync