PATH in post-receive hook doesn't contain PATH as set in bashrc
问题 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 ~/.bashrc file like this: export PATH="$PATH:/opt/mssql-tools/bin" but can't see any change in the PATH if I print it from the hook. Therefore, if I try to execute the command in question in the hook, I get remote: FileNotFoundError: [Errno 2] No such file or directory: 'sqlcmd': 'sqlcmd' So the only solution I see right now is defining it again in the