summaryrefslogtreecommitdiff
path: root/tools/upgrade.sh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-12-01 11:12:31 +0100
committerMarc Cornellà <marc.cornella@live.com>2020-12-01 11:12:31 +0100
commit021f0251e072b0cd2c2f1bfb5b0d2f57fbdfdc50 (patch)
treecf99e52bbe374c099fccc33e076b1dea1697ebe9 /tools/upgrade.sh
parent7712da89ee841f4773d0158370174200813169e1 (diff)
downloadzsh-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-xtools/upgrade.sh4
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