From: David Adam Date: Mon, 6 Mar 2017 14:55:05 +0000 (+0800) Subject: uccpass: don't assume $USER is set from the shell X-Git-Url: https://git.ucc.asn.au/?p=zanchey%2Fuccpass.git;a=commitdiff_plain;h=164bd3b3fd15aa5f5f13cf11c1a8f44a790ce9b8 uccpass: don't assume $USER is set from the shell --- diff --git a/uccpass b/uccpass index 1c453e3..f399803 100755 --- a/uccpass +++ b/uccpass @@ -37,6 +37,7 @@ init () { export PASSWORD_STORE_DIR="$UCCPASS_ROOT/store" export PASSWORD_STORE_UMASK=007 + USER=`whoami` export GIT_AUTHOR_EMAIL="$USER+wheel@ucc.gu.uwa.edu.au" export GIT_AUTHOR_NAME="`getent passwd $USER | cut -d: -f5`"