From dacd38c5bee305cbdf01b32126fd8b4533827b3f Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 31 May 2019 18:29:28 -0600 Subject: [PATCH] fix typo, update assignments --- new-deployable-site.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/new-deployable-site.sh b/new-deployable-site.sh index 508c0fd..b106e94 100755 --- a/new-deployable-site.sh +++ b/new-deployable-site.sh @@ -4,7 +4,7 @@ set -e my_user_tmp=$(grep -r "Git Site Deploys" /etc/passwd | cut -d':' -f1) read -p "Repository Username [$my_user_tmp]: " my_user -my_user=${my_user:-"$my_user_tmp"} +: ${my_user:="$my_user_tmp"} while [ -z "${my_site:-}" ]; do read -p "Site name (ex: example.com): " my_site @@ -12,10 +12,10 @@ done my_repo_tmp=$(eval echo "~$my_user") read -p "Repository [$my_repo_tmp/${my_site}.git]: " my_repos -my_repo=${my_repos:-"$my_repo_tmp/${my_site}.git"} +: ${my_repos:="$my_repo_tmp/${my_site}.git"} read -p "Deploy to [/srv/www/beta.therootcompany.com/$my_site]: " my_deploy -my_deploy=${my_www:-"/srv/www/beta.therootcompany.com/$my_site"} +: ${my_deploy:="/srv/www/beta.therootcompany.com/$my_site"} echo "" echo ""