From 6943f66c6fbeef098d42b897c160b7496c89f21a Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 18 Dec 2008 12:48:30 +0000 Subject: minor fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@676 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/createpkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'trunk') diff --git a/trunk/src/createpkg b/trunk/src/createpkg index fe908b5..c367d8c 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -704,9 +704,10 @@ if [ $SIGN_PACKAGES -eq $on ]; then SIGN_KEYID="-u $SIGN_PACKAGES_KEYID" else if [ ! -z "$SIGN_PACKAGES_USER" ]; then - SIGN_KEYID="-u `su $SIGN_PACKAGES_USER -c "gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5"`" + SIGN_KEYID="-u `su $SIGN_PACKAGES_USER -c \ + "gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5 | awk '{print substr($0, length($0)-7)}'"`" else - SIGN_KEYID="-u `gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5`" + SIGN_KEYID="-u `gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5 | awk '{print substr($0, length($0)-7)}'`" fi fi -- cgit v1.2.3