We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d315776 + 4cb67c0 commit 265672dCopy full SHA for 265672d
pre-receive
@@ -3,7 +3,7 @@
3
# Puppet attempts to source ~/.puppet and will error if $HOME is not set
4
if [[ -z $HOME ]]
5
then
6
- HOME="$(grep "${USER}:" /etc/passwd | awk -F ':' '{print $6}')"
+ HOME="$(getent passwd "${USER}" | awk -F ':' '{print $6}')"
7
export HOME
8
fi
9
0 commit comments