aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-18 12:56:08 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2008-12-18 12:56:08 +0000
commitb99fe7e7ecea16dd0d7da252a4b0bb5e6d80c070 (patch)
tree942b800c3a5ff35c155f0f3ae1fe3064a2dc908b /trunk
parente7676bc0ef9e72a7e10e304888785bb616bfe492 (diff)
downloadsimplepkg-b99fe7e7ecea16dd0d7da252a4b0bb5e6d80c070.tar.gz
simplepkg-b99fe7e7ecea16dd0d7da252a4b0bb5e6d80c070.tar.bz2
minor fixes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@678 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rw-r--r--trunk/src/createpkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 0f47601..60345db 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -705,9 +705,9 @@ if [ $SIGN_PACKAGES -eq $on ]; then
else
if [ ! -z "$SIGN_PACKAGES_USER" ]; then
SIGN_KEYID="`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)}'"`"
+ "gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5 | sed 's/^.*\(.\{8\}\)$/\1/'"`"
else
- SIGN_KEYID="`gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5 | awk '{print substr($0, length($0)-7)}'`"
+ SIGN_KEYID="`gpg --list-secret-keys --with-colons | grep ^sec | head -n 1 | cut -d : -f 5 | sed 's/^.*\(.\{8\}\)$/\1/'`"
fi
fi