You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I push to the repo, the I get the following output:
remote: hooks/post-receive: 19: /home/kpowers/.nvm/nvm.sh: Bad substitution
remote: hooks/post-receive: 79: /home/kpowers/.nvm/nvm.sh: [[: not found
remote: hooks/post-receive: 79: /home/kpowers/.nvm/nvm.sh: [[: not found
remote: /usr/lib/git-core:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
remote: hooks/post-receive: 133: /home/kpowers/.nvm/nvm.sh: [[: not found
remote: -e
remote: N/A
I have also tried source instead of . which results in the following output:
remote: hooks/post-receive: 1: hooks/post-receive: source: not found
remote: /usr/lib/git-core:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Running source ~/.nvm/nvm.sh and . ~/.nvm/nvm.sh work as expected.
The text was updated successfully, but these errors were encountered:
Moving the contents of post-receive to an executable file (in my case /home/kpowers/git/repo1/load) and changing the contents of /home/kpowers/git/repo1/hooks/post-receive to zsh ./load appears to work as a work-around.
I have the following in a git
post-receive
hook:When I push to the repo, the I get the following output:
I have also tried
source
instead of.
which results in the following output:Running
source ~/.nvm/nvm.sh
and. ~/.nvm/nvm.sh
work as expected.The text was updated successfully, but these errors were encountered: