diff options
author | Marc Cornellà <marc.cornella@live.com> | 2020-12-01 11:12:31 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-12-01 11:12:31 +0100 |
commit | 021f0251e072b0cd2c2f1bfb5b0d2f57fbdfdc50 (patch) | |
tree | cf99e52bbe374c099fccc33e076b1dea1697ebe9 /tools/upgrade.sh | |
parent | 7712da89ee841f4773d0158370174200813169e1 (diff) | |
download | zsh-021f0251e072b0cd2c2f1bfb5b0d2f57fbdfdc50.tar.gz zsh-021f0251e072b0cd2c2f1bfb5b0d2f57fbdfdc50.tar.bz2 zsh-021f0251e072b0cd2c2f1bfb5b0d2f57fbdfdc50.zip |
fix(updater): make sure to run it with zsh
Diffstat (limited to 'tools/upgrade.sh')
-rwxr-xr-x | tools/upgrade.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/upgrade.sh b/tools/upgrade.sh index 5d593b6c6..e41817885 100755 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -1,5 +1,9 @@ #!/usr/bin/env zsh +if [ -z "$ZSH_VERSION" ]; then + exec zsh "$0" +fi + cd "$ZSH" # Use colors, but only if connected to a terminal |