lib / distro-specific.sh: add --batch and --yes switches to gpg call

suggestion from coderabbit and indeed it sounds like a good, robust idea
This commit is contained in:
Rolf Leggewie 2025-07-10 07:37:25 +08:00 committed by leggewie
parent 9fe445b44d
commit 9144aaf91b
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ function create_sources_list_and_deploy_repo_key() {
mkdir -p "${basedir}"/usr/share/keyrings
# change to binary form
APT_SIGNING_KEY_FILE="/usr/share/keyrings/armbian-archive-keyring.gpg"
gpg --dearmor < "${SRC}"/config/armbian.key > "${basedir}${APT_SIGNING_KEY_FILE}"
gpg --batch --yes --dearmor < "${SRC}"/config/armbian.key > "${basedir}${APT_SIGNING_KEY_FILE}"
# lets link to the old file as armbian-config uses it and we can't set there to new file
# we user force linking as some old caches still exists