/
ArsKF
/
2026--study--net-admin
Обзор
Документация
Войти
/
ArsKF
/
2026--study--net-admin
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
7
CI/CD
Аналитика
Безопасность
develop
template/config/script/fix-submodules.sh
15 строк
712 B
ArsKF
Initial commit
13 фев 2026, 22:08
Не верифицирован
13 фев 2026, 22:08
f5404a1
Код
Авторство
О чём код?
#!/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