]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
minor fixes
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 18 Dec 2008 12:56:08 +0000 (12:56 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Thu, 18 Dec 2008 12:56:08 +0000 (12:56 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@678 04377dda-e619-0410-9926-eae83683ac58

trunk/src/createpkg

index 0f47601f56913c66a155d1cafc8a7a0810238777..60345dbb957fb516a4930c918bcb465cc797ddde 100644 (file)
@@ -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