Browse Source

fix(updater): make sure to run it with zsh

Marc Cornellà 3 years ago
parent
commit
021f0251e0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tools/upgrade.sh

+ 4 - 0
tools/upgrade.sh

@@ -1,5 +1,9 @@
 #!/usr/bin/env zsh
 #!/usr/bin/env zsh
 
 
+if [ -z "$ZSH_VERSION" ]; then
+  exec zsh "$0"
+fi
+
 cd "$ZSH"
 cd "$ZSH"
 
 
 # Use colors, but only if connected to a terminal
 # Use colors, but only if connected to a terminal