replace exits with break
This commit is contained in:
parent
804f6800d2
commit
d21d617af9
12
setup.sh
12
setup.sh
@ -42,7 +42,7 @@ then
|
|||||||
sudo apt-get install golang -y;
|
sudo apt-get install golang -y;
|
||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
exit;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -60,7 +60,7 @@ then
|
|||||||
go get -u github.com/justjanne/powerline-go;
|
go get -u github.com/justjanne/powerline-go;
|
||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
exit;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -79,7 +79,7 @@ then
|
|||||||
./install.sh;
|
./install.sh;
|
||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
exit;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -97,7 +97,7 @@ then
|
|||||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm;
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm;
|
||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
exit;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -119,11 +119,11 @@ then
|
|||||||
read -p "Do you want to install the vim plugins now?" yn
|
read -p "Do you want to install the vim plugins now?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) vim +PluginInstall +qall; break;;
|
[Yy]* ) vim +PluginInstall +qall; break;;
|
||||||
[Nn]* ) exit;;
|
[Nn]* ) break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
exit;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user