From 1674a633c6948bf1d7bb55c786b78bac6e848f17 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 18 Dec 2008 13:10:26 +0000 Subject: minor fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@680 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trunk/lib') diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index f1c7794..26c550f 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -1375,9 +1375,9 @@ function check_gnupg { local user="$1" home if [ ! -z "$user" ]; then - echo "Setting up gnupg..." home="`grep "^$user:" /etc/passwd | cut -d : -f 6`" if [ ! -d "$home/.gnupg" ]; then + echo "Setting up gnupg..." su $user -c "gpg --list-keys" fi else -- cgit v1.2.3