From: rhatto Date: Thu, 18 Dec 2008 12:48:30 +0000 (+0000) Subject: minor fixes X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6943f66c6fbeef098d42b897c160b7496c89f21a;p=simplepkg.git minor fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@676 04377dda-e619-0410-9926-eae83683ac58 --- 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