浏览代码

installer: don't run zsh at the end

Co-authored-by: Joel Kuzmarski <leoj3n@gmail.com>
Marc Cornellà 5 年之前
父节点
当前提交
a40d93295f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      tools/install.sh

+ 5 - 0
tools/install.sh

@@ -219,6 +219,11 @@ main() {
 	EOF
 	printf "$RESET"
 
+	if [ ! -t 0 ]; then
+		echo "${YELLOW}Run zsh to try it out.${RESET}"
+		exit
+	fi
+
 	exec zsh -l
 }