From 164bd3b3fd15aa5f5f13cf11c1a8f44a790ce9b8 Mon Sep 17 00:00:00 2001 From: David Adam Date: Mon, 6 Mar 2017 22:55:05 +0800 Subject: [PATCH] uccpass: don't assume $USER is set from the shell --- uccpass | 1 + 1 file changed, 1 insertion(+) 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`" -- 2.20.1