45cd2df31fc6d1250cbcad2ee0d562c67a163523
- Author
- LE Manh Cuong <manhcuongle@hotmail.com>
- Committer
- LE Manh Cuong <manhcuongle@hotmail.com>
- Date
Message
Update uninstall.sh
- Need dot `.` for POSIX compliant instead of `source`
- Use modern syntax for command substitution
- Fix missing double quotes
Diff
1diff --git a/tools/uninstall.sh b/tools/uninstall.sh
2index 9ad1b64a668fce464914cc1c04eab02b7e729d1b..147535a11079f8f2d82e705b91d7f1e2b13dc560 100644
3--- a/tools/uninstall.sh
4+++ b/tools/uninstall.sh
5@@ -18,14 +18,14 @@ then
6
7 if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
8 then
9- ZSHRC_SAVE=".zshrc.omz-uninstalled-`date +%Y%m%d%H%M%S`";
10+ ZSHRC_SAVE=".zshrc.omz-uninstalled-$(date +%Y%m%d%H%M%S)";
11 echo "Found ~/.zshrc -- Renaming to ~/${ZSHRC_SAVE}";
12- mv ~/.zshrc ~/${ZSHRC_SAVE};
13+ mv ~/.zshrc ~/"${ZSHRC_SAVE}";
14 fi
15
16 mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc;
17
18- source ~/.zshrc;
19+ . ~/.zshrc;
20 else
21 if hash chsh >/dev/null 2>&1
22 then