uccpass: don't assume $USER is set from the shell
authorDavid Adam <[email protected]>
Mon, 6 Mar 2017 14:55:05 +0000 (22:55 +0800)
committerDavid Adam <[email protected]>
Mon, 6 Mar 2017 14:55:05 +0000 (22:55 +0800)
uccpass

diff --git a/uccpass b/uccpass
index 1c453e3..f399803 100755 (executable)
--- 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="[email protected]"
     export GIT_AUTHOR_NAME="`getent passwd $USER | cut -d: -f5`"
 

UCC git Repository :: git.ucc.asn.au