Browse Source

[debian] fix grep_dd_sigs & shellcheck

Without quoting "$sigs", this was making the script output nothing:
    echo $sigs | while read
master
Matteo Cypriani 1 year ago
parent
commit
849f7d29fa
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      debian/grep_dd_sigs

+ 3
- 3
debian/grep_dd_sigs View File

@@ -24,13 +24,13 @@ if [ $# -ne 1 ] ; then
exit 1
fi

sigs=$(gpg --with-colons --check-sigs $1 \
sigs=$(gpg --with-colons --check-sigs "$1" \
| grep "sig:\!" \
| sed -r "s/sig:\!::[[:digit:]]+:([[:alnum:]]+):.*$/\1/")

echo $sigs | while read key
echo "$sigs" | while read -r key
do
gpg --no-default-keyring --keyring /usr/share/keyrings/debian-keyring.gpg --list-keys $key 2>/dev/null \
gpg --no-default-keyring --keyring /usr/share/keyrings/debian-keyring.gpg --list-keys "$key" 2>/dev/null \
| grep "debian.org" \
| grep "^uid" \
| sed -r "s/^uid +//" \

Loading…
Cancel
Save