Skip to content

Instantly share code, notes, and snippets.

@kaosf
Created August 17, 2013 02:07
Show Gist options
  • Save kaosf/6254905 to your computer and use it in GitHub Desktop.
Save kaosf/6254905 to your computer and use it in GitHub Desktop.
check whether the heroku app with specified name can be created or not; http://qiita.com/ka_/items/e0aeb4741d3862013336
#! /bin/sh
[ 1 = $(curl $1.herokuapp.com 2> /dev/null | grep "<h1><strong>Heroku | No such app</strong></h1>" | wc -l) ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment