浏览代码

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

Marc Cornellà 3 年之前
父节点
当前提交
021f0251e0
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tools/upgrade.sh

+ 4 - 0
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