Skip to content

Instantly share code, notes, and snippets.

@C-Saunders
Created May 13, 2020 14:31
Show Gist options
  • Save C-Saunders/c061571fbf3d991c009da5deca9e890a to your computer and use it in GitHub Desktop.
Save C-Saunders/c061571fbf3d991c009da5deca9e890a to your computer and use it in GitHub Desktop.
#! /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