fix(rpm-ostree): Make version magic string work when specifying keys (#262)

This commit is contained in:
fiftydinar 2024-06-15 13:49:04 +02:00 committed by GitHub
commit b1c58137e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,7 @@ get_yaml_array KEYS '.keys[]' "$1"
if [[ ${#KEYS[@]} -gt 0 ]]; then
echo "Adding keys"
for KEY in "${KEYS[@]}"; do
KEY="${KEY//%OS_VERSION%/${OS_VERSION}}"
rpm --import "${KEY//[$'\t\r\n ']}"
done
fi