/
a.ivakhnenko
/
gitlab-ce
Обзор
Документация
Войти
/
a.ivakhnenko
/
gitlab-ce
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
gitlab-gomplate/scripts/download
20 строк
536 B
IvahAlexander
commit
26 ноя 2024, 07:39
26 ноя 2024, 07:39
a057ac9
Код
Авторство
О чём код?
#!/bin/bash # This script designed to download and verify the sources of Gomplate # Items from environment: # - GOMPLATE_SOURCE_URL - complete URL of the source tarball # - GOMPLATE_SHA256 - The shasum of the tarball set -euxo pipefail GOMPLATE_SOURCE_URL="${1}" GOMPLATE_SHA256="${2}" pushd /build # Downloads sources curl --retry 6 -fLOsS "${GOMPLATE_SOURCE_URL}" # Verify source tarball sha256sum -c <<< "${GOMPLATE_SHA256} $(basename "${GOMPLATE_SOURCE_URL}")" tar xzf "$(basename "${GOMPLATE_SOURCE_URL}")" popd # from /build