__apt_key: fix key dearmor when fetching from uri
This commit is contained in:
		
					parent
					
						
							
								799ec72369
							
						
					
				
			
			
				commit
				
					
						d147f4a86f
					
				
			
		
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -48,11 +48,11 @@ curl -s -L \\
 | 
				
			||||||
    -o "$keyfile" \\
 | 
					    -o "$keyfile" \\
 | 
				
			||||||
    "$uri"
 | 
					    "$uri"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if grep -Fq 'BEGIN PGP PUBLIC KEY BLOCK' \\
 | 
					key="\$( cat "$keyfile" )"
 | 
				
			||||||
    "$keyfile"
 | 
					
 | 
				
			||||||
 | 
					if echo "\$key" | grep -Fq 'BEGIN PGP PUBLIC KEY BLOCK'
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
    cat "$keyfile" \\
 | 
					    echo "\$key" | gpg --dearmor > "$keyfile"
 | 
				
			||||||
        | gpg --export > "$keyfile"
 | 
					 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue