Fix importPrivateKey() bug
This commit is contained in:
parent
8cde1faf3b
commit
aeb7bc193f
|
@ -34,7 +34,7 @@ installAurDeps() {
|
||||||
importPrivateKey() {
|
importPrivateKey() {
|
||||||
echo "$gpgPrivateKey" > private.key
|
echo "$gpgPrivateKey" > private.key
|
||||||
gpgFlags=("--batch" "--pinentry-mode" "loopback" "--passphrase")
|
gpgFlags=("--batch" "--pinentry-mode" "loopback" "--passphrase")
|
||||||
gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key
|
sudo -u nobody gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key
|
||||||
rm private.key
|
rm private.key
|
||||||
sedCommand="gpg ${gpgFlags[*]} \"$gpgPassphrase\""
|
sedCommand="gpg ${gpgFlags[*]} \"$gpgPassphrase\""
|
||||||
makepkgSigFile="/usr/share/makepkg/integrity/generate_signature.sh"
|
makepkgSigFile="/usr/share/makepkg/integrity/generate_signature.sh"
|
||||||
|
@ -44,7 +44,6 @@ importPrivateKey() {
|
||||||
buildPackage() {
|
buildPackage() {
|
||||||
if [ -n "$gpgPrivateKey" ] && [ -n "$gpgPublicKey" ]; then
|
if [ -n "$gpgPrivateKey" ] && [ -n "$gpgPublicKey" ]; then
|
||||||
importPrivateKey
|
importPrivateKey
|
||||||
gpg --list-sigs
|
|
||||||
sudo -u nobody makepkg -s --sign --key "$gpgPublicKey" --noconfirm
|
sudo -u nobody makepkg -s --sign --key "$gpgPublicKey" --noconfirm
|
||||||
else
|
else
|
||||||
sudo -u nobody makepkg -s --noconfirm
|
sudo -u nobody makepkg -s --noconfirm
|
||||||
|
|
Loading…
Reference in New Issue