diff options
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r-- | trunk/src/createpkg | 5 |
1 files changed, 3 insertions, 2 deletions
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 |