don't log warning when env_keys script is reloaded in the same… (#45578)

(cherry picked from commit b47b0d194580e4cd21be05e01b768969637954f8)
This commit is contained in:
Spencer 2019-09-12 19:13:30 -07:00 committed by GitHub
parent 17f844a93a
commit f250b49e2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,13 +3,17 @@
set -e
if [ -z "$VAULT_SECRET_ID" ]; then
echo ""
echo ""
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
echo " VAULT_SECRET_ID not set, not loading tokens into env";
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
echo ""
echo ""
if [ -n "$GITHUB_TOKEN" ] && [ -n "$KIBANA_CI_REPORTER_KEY" ] && [ -n "$PERCY_TOKEN" ]; then
echo " -- secrets already loaded from vault";
else
echo ""
echo ""
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
echo " VAULT_SECRET_ID not set, not loading tokens into env";
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
echo ""
echo ""
fi
else
# load shared helpers to get `retry` function
source /usr/local/bin/bash_standard_lib.sh