Browse Source

[debian] fix grep_dd_sigs & shellcheck

Without quoting "$sigs", this was making the script output nothing:
    echo $sigs | while read
Matteo Cypriani 9 months 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
24 24
 	exit 1
25 25
 fi
26 26
 
27
-sigs=$(gpg --with-colons --check-sigs $1 \
27
+sigs=$(gpg --with-colons --check-sigs "$1" \
28 28
 	| grep "sig:\!" \
29 29
 	| sed -r "s/sig:\!::[[:digit:]]+:([[:alnum:]]+):.*$/\1/")
30 30
 
31
-echo $sigs | while read key
31
+echo "$sigs" | while read -r key
32 32
 	do
33
-		gpg --no-default-keyring --keyring /usr/share/keyrings/debian-keyring.gpg --list-keys $key 2>/dev/null \
33
+		gpg --no-default-keyring --keyring /usr/share/keyrings/debian-keyring.gpg --list-keys "$key" 2>/dev/null \
34 34
 			| grep "debian.org" \
35 35
 			| grep "^uid" \
36 36
 			| sed -r "s/^uid +//" \

Loading…
Cancel
Save