fix: whitespace cleanup and indentation fix in tools.func

This commit is contained in:
MickLesk
2026-03-01 20:22:57 +01:00
parent 31c7a86a4d
commit 82eac757d6

View File

@@ -1723,11 +1723,11 @@ setup_deb822_repo() {
msg_error "Failed to download GPG key for ${name}" msg_error "Failed to download GPG key for ${name}"
rm -f "$tmp_gpg" rm -f "$tmp_gpg"
return 1 return 1
} }
if grep -q "BEGIN PGP" "$tmp_gpg" 2>/dev/null; then if grep -q "BEGIN PGP" "$tmp_gpg" 2>/dev/null; then
# ASCII-armored — dearmor to binary # ASCII-armored — dearmor to binary
gpg --dearmor --yes -o "/etc/apt/keyrings/${name}.gpg" <"$tmp_gpg" || { gpg --dearmor --yes -o "/etc/apt/keyrings/${name}.gpg" <"$tmp_gpg" || {
msg_error "Failed to install GPG key for ${name}" msg_error "Failed to install GPG key for ${name}"
rm -f "$tmp_gpg" rm -f "$tmp_gpg"
return 1 return 1