Fix hook to run when $HOME is not explicitly set
This commit is contained in:
@@ -30,6 +30,13 @@ if [[ $? -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "x${HOME}" == "x" ]]; then
|
||||||
|
id=`whoami`
|
||||||
|
HOME=`eval echo ~${id}`
|
||||||
|
export HOME
|
||||||
|
fi
|
||||||
|
echo "HOME is ${HOME}" 1>&2
|
||||||
|
|
||||||
tmpdir=`mktemp -d`
|
tmpdir=`mktemp -d`
|
||||||
tmpfile="$tmpdir/candidate"
|
tmpfile="$tmpdir/candidate"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user