Skip to content

Instantly share code, notes, and snippets.

@cwsaylor
Created April 17, 2014 21:15
Show Gist options
  • Select an option

  • Save cwsaylor/11012046 to your computer and use it in GitHub Desktop.

Select an option

Save cwsaylor/11012046 to your computer and use it in GitHub Desktop.
Duplicates the collaborators from one heroku env to another
#!/usr/bin/env sh
# Usage: ./heroku_dupe_collab.sh source-env target-env
for arg in $(heroku sharing -a $1 | grep -v "===" | awk '{print $1}')
do
heroku sharing:add $arg -a $2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment