Don't ask to clone dotfiles if already done

This commit is contained in:
Thomas Forgione 2019-05-03 10:20:01 +02:00
parent 29da5e09bc
commit 62bf218d99
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 7 additions and 5 deletions

View File

@ -155,12 +155,14 @@ clone_dotfiles() {
} }
configure_dotfiles() { configure_dotfiles() {
yes_no_ask "do you wish to configure the dotfiles ?" if [ ! -d $HOME/.config/dotfiles ]; then
if [ $? -ne 0 ]; then yes_no_ask "do you wish to configure the dotfiles ?"
return if [ $? -ne 0 ]; then
fi return
fi
clone_dotfiles clone_dotfiles
fi
} }
configure_shell() { configure_shell() {