summaryrefslogtreecommitdiff
path: root/tools/upgrade.sh
diff options
context:
space:
mode:
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