Add way for infisical to switch accounts when signed into wrong account
This commit is contained in:
@@ -22,6 +22,7 @@ fi
|
||||
|
||||
[ -f "$ROOT_DIR/.infisical.json" ] || { echo "export-env: run 'infisical init' in this repository." >&2; exit 1; }
|
||||
command -v infisical >/dev/null 2>&1 || { echo "export-env: Infisical CLI is required." >&2; exit 1; }
|
||||
"$ROOT_DIR/scripts/infisical-account" ensure
|
||||
|
||||
(cd "$ROOT_DIR" && infisical export --env="$INFISICAL_ENV" --format=dotenv --silent) || {
|
||||
echo "export-env: failed to export '$INFISICAL_ENV'; check login and project access." >&2
|
||||
|
||||
Reference in New Issue
Block a user