title: MAC Packges tool shows error for Pre install script
body: <p>I created a .pkg using Packages tool in Mac. Included a preScript for installing HomeBrew and shows error Don't run this as root.
  The script included is:</p>
  
  <pre><code>#!/bin/sh
       if test ! $(which brew); then
      echo "Installing homebrew..."
      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
      fi
  </code></pre>