fix typo, update assignments
This commit is contained in:
parent
9086507047
commit
dacd38c5be
|
@ -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 ""
|
||||
|
|
Loading…
Reference in New Issue