diff --git a/dotfiles/install.sh b/dotfiles/install.sh index cfca482..7ef809e 100755 --- a/dotfiles/install.sh +++ b/dotfiles/install.sh @@ -1,10 +1,16 @@ #!/usr/bin/env bash -url='https://git.lcarsnet.pgw.jp/gitbucket/git/kohei/dotfiles.git' -branch='master' +declare -- user +declare -- password echo 'Info: Git cloning dotfiles.' +read -p 'Username: ' user +read -sp 'Password: ' password + +url="https://${user}:${password}@git.lcarsnet.pgw.jp/gitbucket/git/kohei/dotfiles.git" +branch='master' + git clone -b "${branch}" "${url}" echo 'done.'