From 45cd2df31fc6d1250cbcad2ee0d562c67a163523 Mon Sep 17 00:00:00 2001 From: LE Manh Cuong Date: Fri, 23 Oct 2015 09:03:24 +0700 Subject: [PATCH] Update uninstall.sh - Need dot `.` for POSIX compliant instead of `source` - Use modern syntax for command substitution - Fix missing double quotes --- tools/uninstall.sh | 6 +++--- 1 file 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