Undercore - values in the domain too

This commit is contained in:
Luke Murphy 2021-03-04 16:19:55 +01:00
parent fd04c5a6e9
commit d6195ad6d7
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

4
abra
View File

@ -712,6 +712,8 @@ OPTIONS
} }
sub_app_new (){ sub_app_new (){
shopt -s extglob
require_abra_dir require_abra_dir
get_servers get_servers
@ -750,7 +752,7 @@ sub_app_new (){
fi fi
if [ -z "$APP_NAME" ]; then if [ -z "$APP_NAME" ]; then
DEFAULT_NAME="${TYPE/-/}_${DOMAIN//./_}" DEFAULT_NAME="${TYPE/-/_}_${DOMAIN//+([.-])/_}"
read -rp "App name [$DEFAULT_NAME]: " APP_NAME read -rp "App name [$DEFAULT_NAME]: " APP_NAME
if [ -z "$APP_NAME" ]; then if [ -z "$APP_NAME" ]; then
APP_NAME="$DEFAULT_NAME" APP_NAME="$DEFAULT_NAME"