Skip to content

Instantly share code, notes, and snippets.

@etozzato
Created November 19, 2010 19:09
Show Gist options
  • Select an option

  • Save etozzato/706972 to your computer and use it in GitHub Desktop.

Select an option

Save etozzato/706972 to your computer and use it in GitHub Desktop.
#!/bin/bash
if cat ~/.heroku/credentials | grep 654321 > /dev/null
then
echo "me@gmail.com" > ~/.heroku/credentials
echo "123456" >> ~/.heroku/credentials
else
echo "myself@gmail.com" > ~/.heroku/credentials
echo "654321" >> ~/.heroku/credentials
fi
cat ~/.heroku/credentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment