Skip to content

Commit 343f77a

Browse files
committed
Merge pull request #19 from jsohl/githome
Setting $HOME for user
2 parents 0649205 + ee46814 commit 343f77a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pre-receive

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
22

3+
# Puppet attempts to source ~/.puppet and will error if $HOME is not set
4+
if [ -z $HOME ]
5+
then
6+
export HOME=$(grep "${USER}:" /etc/passwd | awk -F ':' '{print $6}')
7+
fi
8+
39
failures=0
410
RC=0
511

0 commit comments

Comments
 (0)