Commit b90c8944 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

archlinux: fix pacmanallkeys URL, make curl silent

Also make all functions local as to not spill variables into the
global namespace.
parent 98ea6414
...@@ -68,6 +68,8 @@ paclist() { ...@@ -68,6 +68,8 @@ paclist() {
} }
pacdisowned() { pacdisowned() {
emulate -L zsh
tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$ tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$
db=$tmp/db db=$tmp/db
fs=$tmp/fs fs=$tmp/fs
...@@ -84,12 +86,14 @@ pacdisowned() { ...@@ -84,12 +86,14 @@ pacdisowned() {
} }
pacmanallkeys() { pacmanallkeys() {
curl https://www.archlinux.org/{developers,trustedusers}/ | \ emulate -L zsh
curl -s https://www.archlinux.org/people/{developers,trustedusers}/ | \
awk -F\" '(/pgp.mit.edu/) { sub(/.*search=0x/,""); print $1}' | \ awk -F\" '(/pgp.mit.edu/) { sub(/.*search=0x/,""); print $1}' | \
xargs sudo pacman-key --recv-keys xargs sudo pacman-key --recv-keys
} }
pacmansignkeys() { pacmansignkeys() {
emulate -L zsh
for key in $*; do for key in $*; do
sudo pacman-key --recv-keys $key sudo pacman-key --recv-keys $key
sudo pacman-key --lsign-key $key sudo pacman-key --lsign-key $key
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment