Skip to content
Permalink
Browse files

Prompt for app name

  • Loading branch information...
s4nchez committed Jul 4, 2017
1 parent 3f24c24 commit 289b61fb4c613f783c81e8739219daff59cef2e7
Showing with 2 additions and 5 deletions.
  1. +2 −2 create-app.sh
  2. +0 −3 destroy-app.sh
@@ -153,10 +153,10 @@ ensure_command "jq"
ensure_command "openssl"
check_env

APP_NAME=${1:-}
read -p "Enter your app name: " APP_NAME

if [[ -z "${APP_NAME:-}" ]]; then
echo "Usage: $0 <app-name>" >/dev/stderr
echo "App name is required. Aborting." >/dev/stderr
exit 1
fi

@@ -39,6 +39,3 @@ APP_NAME=$1
delete_heroku_app ${APP_NAME}
delete_github_repo ${APP_NAME}

if [ -d "${DIR}/${APP_NAME}" ]; then
rm -R "${DIR}/${APP_NAME}"
fi

0 comments on commit 289b61f

Please sign in to comment.
You can’t perform that action at this time.