This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Remove all Vercel environment variables for the linked project. | |
| # Only parses lines where value is "Encrypted" so we don't try to delete | |
| # header/footer tokens (e.g. "Common", "next") from vercel env ls output. | |
| set -e | |
| env_vars=$(vercel env ls) | |
| # Only treat lines as env vars when the second column is "Encrypted" | |
| env_var_names=$(echo "$env_vars" | awk '$2 == "Encrypted" { print $1 }') |