From a7e8b290d252eb221f79f879ffd1570aca36803b Mon Sep 17 00:00:00 2001 From: david Date: Tue, 3 Oct 2017 22:33:57 +0200 Subject: [PATCH] autopush by david@ghost --- install.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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