Ensure a new line is added to dnf repo config

The config file might not have a trailing new line, ensure we are
not appending to the end of an existing line, breaking the config
This commit is contained in:
Luca Boccassi 2024-12-05 15:50:15 +00:00
commit 1f9a7c46e7

View file

@ -83,7 +83,7 @@ RuntimeBuildSources=no
EOF
# Ensure packages built for this test have highest priority
echo "priority=1" >> /etc/yum.repos.d/copr_build*
echo -e "\npriority=1" >> /etc/yum.repos.d/copr_build*
# Disable mkosi's own repository logic
touch /etc/yum.repos.d/mkosi.repo