title: PATH in post-receive hook doesn't contain PATH as set in bashrc
body: <p>How can I set the PATH on Ubuntu in a way where its variables that I set are also set in a post-receive script? Currently I'm doing it via the <code>~/.bashrc</code> file like this:</p>
  
  <p><code>export PATH="$PATH:/opt/mssql-tools/bin"</code></p>
  
  <p>but can't see any change in the <code>PATH</code> if I print it from the hook. Therefore, if I try to execute the command in question in the hook, I get</p>
  
  <p><code>remote: FileNotFoundError: [Errno 2] No such file or directory: 'sqlcmd': 'sqlcmd'</code></p>
  
  <p>So the only solution I see right now is defining it again in the post-receive hook itself, like this:</p>
  
  <p><code>export PATH="$PATH:/opt/mssql-tools/bin"</code></p>
  
  <p>Is there a better way?</p>
  
  <p>Thank you!</p>