Just pull the right gpg key directly
This commit is contained in:
1 parent
d8736e2919
commit
0590f653a6
1 file changed
+7
-6
@@ -1,14 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo "Usage: omarchy-iso-sign [gnupg-user] [release/omarchy.iso]"
|
echo "usage: omarchy-iso-sign [release/omarchy.iso]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! pacman -Q gnupg >/dev/null; then
|
if ! pacman -q gnupg >/dev/null; then
|
||||||
sudo pacman -S --noconfirm --needed --quiet gnupg
|
sudo pacman -s --noconfirm --needed --quiet gnupg
|
||||||
echo "You'll need to generate a new key with: gpg --full-generate-key"
|
echo "you'll need to generate a new key with: gpg --full-generate-key"
|
||||||
echo "Then get your keyid from: gpg --list-secret-keys --keyid-format=long"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gpg --local-user $1 --output $2.sig --detach-sig $2
|
gnupg-user-key=$(gpg --list-secret-keys --keyid-format=long | awk '/^[[:space:]]/{print $1; exit}')
|
||||||
|
|
||||||
|
gpg --local-user $gnupg-user-key --output $2.sig --detach-sig $2
|
||||||
Reference in new issue
Block a user