summaryrefslogtreecommitdiff
path: root/tools/uninstall.sh
diff options
context:
space:
mode:
authorLE Manh Cuong <manhcuongle@hotmail.com>2015-10-23 09:03:24 +0700
committerLE Manh Cuong <manhcuongle@hotmail.com>2015-10-23 09:03:24 +0700
commit45cd2df31fc6d1250cbcad2ee0d562c67a163523 (patch)
treec8e9ad03d48a9d3332131e0e57488deabc1a8124 /tools/uninstall.sh
parente44aa50301cbdb9c713193263e6c0c5a9a5798c0 (diff)
downloadzsh-45cd2df31fc6d1250cbcad2ee0d562c67a163523.tar.gz
zsh-45cd2df31fc6d1250cbcad2ee0d562c67a163523.tar.bz2
zsh-45cd2df31fc6d1250cbcad2ee0d562c67a163523.zip
Update uninstall.sh
- Need dot `.` for POSIX compliant instead of `source` - Use modern syntax for command substitution - Fix missing double quotes
Diffstat (limited to 'tools/uninstall.sh')
-rw-r--r--tools/uninstall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/uninstall.sh b/tools/uninstall.sh
index 9ad1b64a6..147535a11 100644
--- a/tools/uninstall.sh
+++ b/tools/uninstall.sh
@@ -18,14 +18,14 @@ then
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
then
- ZSHRC_SAVE=".zshrc.omz-uninstalled-`date +%Y%m%d%H%M%S`";
+ ZSHRC_SAVE=".zshrc.omz-uninstalled-$(date +%Y%m%d%H%M%S)";
echo "Found ~/.zshrc -- Renaming to ~/${ZSHRC_SAVE}";
- mv ~/.zshrc ~/${ZSHRC_SAVE};
+ mv ~/.zshrc ~/"${ZSHRC_SAVE}";
fi
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc;
- source ~/.zshrc;
+ . ~/.zshrc;
else
if hash chsh >/dev/null 2>&1
then