53a63355beb1143aa5f6759a3dfdb1d7657475fe
- Author
- LE Manh Cuong <manhcuongle@hotmail.com>
- Committer
- LE Manh Cuong <manhcuongle@hotmail.com>
- Date
Message
Change coding style
Diff
1diff --git a/tools/uninstall.sh b/tools/uninstall.sh
2index 147535a11079f8f2d82e705b91d7f1e2b13dc560..132e637602799aa9c2aac02d3ea3f68aebd0d80c 100644
3--- a/tools/uninstall.sh
4+++ b/tools/uninstall.sh
5@@ -1,23 +1,19 @@
6 read -r -p "Are you sure you want to remove Oh My Zsh? [y/N] " confirmation
7-if [ "$confirmation" != y ] && [ "$confirmation" != Y ]
8-then
9+if [ "$confirmation" != y ] && [ "$confirmation" != Y ]; then
10 echo "Uninstall cancelled"
11 exit
12 fi
13
14 echo "Removing ~/.oh-my-zsh"
15-if [ -d ~/.oh-my-zsh ]
16-then
17+if [ -d ~/.oh-my-zsh ]; then
18 rm -rf ~/.oh-my-zsh
19 fi
20
21 echo "Looking for original zsh config..."
22-if [ -f ~/.zshrc.pre-oh-my-zsh ] || [ -h ~/.zshrc.pre-oh-my-zsh ]
23-then
24+if [ -f ~/.zshrc.pre-oh-my-zsh ] || [ -h ~/.zshrc.pre-oh-my-zsh ]; then
25 echo "Found ~/.zshrc.pre-oh-my-zsh -- Restoring to ~/.zshrc";
26
27- if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
28- then
29+ if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
30 ZSHRC_SAVE=".zshrc.omz-uninstalled-$(date +%Y%m%d%H%M%S)";
31 echo "Found ~/.zshrc -- Renaming to ~/${ZSHRC_SAVE}";
32 mv ~/.zshrc ~/"${ZSHRC_SAVE}";
33@@ -27,8 +23,7 @@ then
34
35 . ~/.zshrc;
36 else
37- if hash chsh >/dev/null 2>&1
38- then
39+ if hash chsh >/dev/null 2>&1; then
40 echo "Switching back to bash"
41 chsh -s /bin/bash
42 else