/
hubbitus
/
shell.scripts
Обзор
Документация
Войти
/
hubbitus
/
shell.scripts
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
vault.env
10 строк
384 B
Pavel Alexeev
Add vault.env
23 сен 2023, 22:12
23 сен 2023, 22:12
f1cde54
Код
Авторство
О чём код?
#!/usr/bin/bash # If it is not sourced (by https://stackoverflow.com/questions/2683279/how-to-detect-if-a-script-is-being-sourced/28776166#28776166) if ! (return 0 2>/dev/null) then : ${1?"You should source this script like: source `basename $0`"} exit 1 fi export VAULT_ADDR=https://vault.gid.team/ export VAULT_TOKEN="$(pass show GID.ru/CorporateServices/vault.gid.team-token)"