diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-03-14 22:29:34 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-03-14 22:29:34 -0400 |
commit | 5a5547251f0a29bb41832e240f9f15cb5cf002bc (patch) | |
tree | 1a961bb0fdec8b8e17659213785b2ab3f79ca9d8 /bin | |
parent | ee71849692690e9cd81852434f5babb5d63dc8bb (diff) |
post-receive: adjust PATH with .profile if necessary
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/post-receive.githook | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/post-receive.githook b/bin/post-receive.githook index 53de38c..ddd74c3 100755 --- a/bin/post-receive.githook +++ b/bin/post-receive.githook @@ -4,6 +4,10 @@ whoami export LANG=en_US.UTF-8 unset GIT_DIR +if ! type scss; then + . ~/.profile +fi + if ! git merge-base --is-ancestor master pre-generated; then dir="$(mktemp --tmpdir -d www-generate.XXXXXXXXXX)" git clone "$PWD" "$dir" |