[debian] fix grep_dd_sigs & shellcheck

Without quoting "$sigs", this was making the script output nothing:
    echo $sigs | while read
This commit is contained in:
Matteo Cypriani 2018-04-11 23:07:45 +02:00
父節點 b00b2eb16b
當前提交 849f7d29fa
共有 1 個檔案被更改,包括 3 行新增3 行删除

6
debian/grep_dd_sigs vendored
查看文件

@ -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 +//" \