uccpass: don't assume $USER is set from the shell
[zanchey/uccpass.git] / 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