Skip to content

Commit ee46814

Browse files
author
Jacob Sohl
committed
setting $HOME for user
1 parent 0649205 commit ee46814

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)