diff options
author | Marcus Müller <mueller@cel.kit.edu> | 2013-04-29 09:51:21 +0200 |
---|---|---|
committer | Marcus Müller <mueller@cel.kit.edu> | 2013-04-29 09:51:21 +0200 |
commit | 39b46f526c83a5d4704bd25eff03c7678230ec78 (patch) | |
tree | 8c43ce7f4cd4583ee5dc022c95d35ea65204c45e | |
parent | b6ea876971b2270a2c73a07a6f6a337604132c6f (diff) | |
download | zsh-39b46f526c83a5d4704bd25eff03c7678230ec78.tar.gz zsh-39b46f526c83a5d4704bd25eff03c7678230ec78.tar.bz2 zsh-39b46f526c83a5d4704bd25eff03c7678230ec78.zip |
eliminated unnecessary cd and failing substitution
Changing the working directory in a sub-subshell
does not change the working directory of the executing
shell.
The substitution was broken for me on _all_ my machines,
so I started looking into the business.
-rw-r--r-- | tools/upgrade.sh | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/upgrade.sh b/tools/upgrade.sh index 0aeebdebf..3624a88e5 100644 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -1,8 +1,5 @@ -current_path=`pwd` -current_path=${current_path/ /\\ } printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh" cd "$ZSH" - if git pull origin master then printf '\033[0;32m%s\033[0m\n' ' __ __ ' @@ -17,4 +14,3 @@ else printf '\033[0;31m%s\033[0m\n' 'There was an error updating. Try again later?' fi -cd "$current_path" |