Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 9707eb3e4ddb813090db3f9b2766112cbb9fe5da 1 parent 26e24d0
@blt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/hooks/post-receive.sh
View
4 lib/hooks/post-receive.sh
@@ -1,4 +1,6 @@
-#!/usr/bin/env bash
+#!/bin/bash -i
+set -e
+
if [ "$GIT_DIR" = "." ]; then
# The script has been called as a hook; chdir to the working copy
cd ..
Please sign in to comment.
Something went wrong with that request. Please try again.