浏览代码

Merge pull request #4515 from brianloveswords/safer-install-script

Make install script safer
Marc Cornellà 9 年之前
父节点
当前提交
662bdcc8d8
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tools/install.sh

+ 4 - 0
tools/install.sh

@@ -1,3 +1,4 @@
+function main() {
 # Use colors, but only if connected to a terminal, and that terminal
 # supports them.
 tput=$(which tput)
@@ -117,3 +118,6 @@ echo 'p.p.s. Get stickers and t-shirts at http://shop.planetargon.com.'
 echo ''
 printf "${NORMAL}"
 env zsh
+}
+
+main