diff --git a/install.sh b/install.sh index 3496eff..dacb77f 100755 --- a/install.sh +++ b/install.sh @@ -60,7 +60,6 @@ installmyzsh() rm -rf ~/.myzsh choice="null" while [ $choice != "y" ] && [ $choice != "n" ]; do - echo "" read -p "[myzsh]: should i clone myzsh writeable? [y/n]" choice if [ $choice == "y" ]; then git clone git@socialg.it:david/myzsh.git ~/.myzsh @@ -89,10 +88,8 @@ installmyzsh() if [ -d ~/.myzsh ]; then echo "[myzsh]: it seems i have already been set up." - choice="null" - read -p "[myzsh]: should i cleanup and reinstall? [y/n]" choice - echo "debug: $choice" - if [ $choice == "y" ]; then + read -p "[myzsh]: should i cleanup & reinstall? [y/n]" choice + if [ -n $choice ] || [ $choice == "y" ]; then installdeps installmyzsh else