title: Mac app Packages - Running pre-installation script issues
body: <p>So I'm using the packages app : <a href="http://s.sudre.free.fr/Software/Packages/about.html" rel="nofollow noreferrer">http://s.sudre.free.fr/Software/Packages/about.html</a></p>
  
  <p>Running a pre-installation script for my package that does something simple such as </p>
  
  <pre><code>#!/bin/sh
  cd ~/Desktop
  mkdir test_folder
  exit 0
  </code></pre>
  
  <p>Gives me no issues, creates the folder and installation is successful. (It is a dummy app/package and I am only testing to make sure I can get the installation script to work).</p>
  
  <p>However, when I try to test the actual content I want to install for the user, it says the installation is successful but nothing happens.</p>
  
  <pre><code> #!/bin/sh
  export GOPATH=~/gocode
  export PATH=$PATH:$GOPATH/bin
  
  go get -d github.com/lightningnetwork/lnd
  cd $GOPATH/src/github.com/lightningnetwork/lnd
  make &amp;&amp; make install
  
  exit 0
  </code></pre>
  
  <p>I'm not sure if my script is incorrect? Do I have to use only native bash commands because I am aware that <code>go &amp; get</code> aren't traditional bash commands. I'm really confused because this script works 100% fine when running normally &amp; as admin through the terminal yet gives me issues when using the Packages App.</p>
  
  <p>I'm totally open to achieving this installation a different way (not using Packages or having to do a different script approach).</p>
  
  <p>An alternative I was thinking was to create an Electron Menu Bar app that would run the same script, but I'm not sure if this would work either.</p>
  
  <p>Thank you so much for your help!</p>