Bulk add collaborators for Heroku app
#!/bin/bash
set -e # exit entire script if something is wrong
if [ -z "$1" ]
then
echo "Please supply the Heroku app name"
exit 0
fi
array=( user-1@example.com user-2@example.com )
for i in "${array[@]}"
do
heroku access:add $i --app $1
done