fix typo, update assignments

This commit is contained in:
AJ ONeal 2019-05-31 18:29:28 -06:00
parent 9086507047
commit dacd38c5be
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ set -e
my_user_tmp=$(grep -r "Git Site Deploys" /etc/passwd | cut -d':' -f1) my_user_tmp=$(grep -r "Git Site Deploys" /etc/passwd | cut -d':' -f1)
read -p "Repository Username [$my_user_tmp]: " my_user 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 while [ -z "${my_site:-}" ]; do
read -p "Site name (ex: example.com): " my_site read -p "Site name (ex: example.com): " my_site
@ -12,10 +12,10 @@ done
my_repo_tmp=$(eval echo "~$my_user") my_repo_tmp=$(eval echo "~$my_user")
read -p "Repository [$my_repo_tmp/${my_site}.git]: " my_repos 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 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 ""
echo "" echo ""