/
Max_Kuptsov
/
2026-1--study--securitymodeling
Обзор
Документация
Войти
/
Max_Kuptsov
/
2026-1--study--securitymodeling
Код
Запросы
0
Задачи
Пакеты
0
Релизы
3
Аналитика
Безопасность
develop
template/config/script/fix-submodules.sh
15 строк
712 B
Max_Kuptsov
Initial commit
07 мар 2026, 10:41
Верифицирован
07 мар 2026, 10:41
110c486
Код
Авторство
О чём код?
#!/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