Created
May 13, 2020 14:31
-
-
Save C-Saunders/c061571fbf3d991c009da5deca9e890a to your computer and use it in GitHub Desktop.
This file contains 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
#! /bin/bash | |
set -eu | |
# Expects two Heroku app names as arguments | |
# Displays the diff of the environment variable *names* (ignoring their values) | |
args=("$@") | |
first_app_var_names=$(heroku config -s --app ${args[0]} | sed -E 's/=.*$//') | |
second_app_var_names=$(heroku config -s --app ${args[1]} | sed -E 's/=.*$//') | |
diff -y <(echo "$first_app_var_names" ) <(echo "$second_app_var_names") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment