From 3b646c181ae53253a21afece5d0ddbc74a919fbc Mon Sep 17 00:00:00 2001 From: fiftydinar <65243233+fiftydinar@users.noreply.github.com> Date: Tue, 1 Oct 2024 18:03:49 +0200 Subject: [PATCH] chore(akmods): Revert using `readonly` It looks less clean & readable in code --- modules/akmods/akmods.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/akmods/akmods.sh b/modules/akmods/akmods.sh index 2da8726..d0d33f1 100644 --- a/modules/akmods/akmods.sh +++ b/modules/akmods/akmods.sh @@ -5,23 +5,20 @@ ENABLE_MULTIMEDIA_REPO() { sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo sed -i "0,/enabled/ s@enabled=0@enabled=1@g" /etc/yum.repos.d/negativo17-fedora-multimedia.repo } -readonly -f ENABLE_MULTIMEDIA_REPO DISABLE_MULTIMEDIA_REPO() { sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/negativo17-fedora-multimedia.repo } -readonly -f DISABLE_MULTIMEDIA_REPO SET_HIGHER_PRIORITY_AKMODS_REPO() { echo "priority=90" >> /etc/yum.repos.d/_copr_ublue-os-akmods.repo } -readonly -f SET_HIGHER_PRIORITY_AKMODS_REPO get_yaml_array INSTALL '.install[]' "$1" INSTALL_PATH=("${INSTALL[@]/#/\/tmp/rpms/kmods/*}") -readonly INSTALL_PATH=("${INSTALL_PATH[@]/%/*.rpm}") -readonly INSTALL_STR=$(echo "${INSTALL_PATH[*]}" | tr -d '\n') +INSTALL_PATH=("${INSTALL_PATH[@]/%/*.rpm}") +INSTALL_STR=$(echo "${INSTALL_PATH[*]}" | tr -d '\n') if [[ ${#INSTALL[@]} -gt 0 ]]; then echo "Installing akmods"