Set bash in Interactive mode and exit on errors in post-receive hook. #19

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

blt commented Jan 20, 2012

In interactive mode users' /etc/bash.bashrc (or /etc/bashrc, depending on OS) and ~/.bashrc will be sourced, allowing rbenv and RVM installations to be used without continual re-editing of deploy scripts. 'set -e' merely stops execution on failure of a sub-command. No runtime penalty for either change is incurred.

Set bash in Interactive mode and exit on errors.
In interactive mode users' /etc/bash.bashrc (or /etc/bashrc, depending on OS) and ~/.bashrc will be sourced, allowing rbenv and RVM installations to be used without continual re-editing of deploy scripts. 'set -e' merely stops execution on failure of a sub-command. No runtime penalty for either change is incurred.

zh pushed a commit to zh/git-deploy that referenced this pull request Feb 17, 2012

Owner

mislav commented Mar 15, 2012

Pulled! Thanks

@mislav mislav closed this Mar 15, 2012

mislav added a commit that referenced this pull request Apr 3, 2012

don't run bash in interactive mode
First of all, we're lying - the shell isn't interactive. Second, it
causes the issue described in #30.

We'll have to find another way to support rbenv and RVM installations.

references #19, references #14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment