diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 2347c58..94981fc 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -1284,6 +1284,7 @@ spcd_step__python_modules() { spcd_step__install_packages() { spcd_step_in "OS packages" + local file # epel spcd_step "EPEL" case "${SPCD_OS_ID}" in @@ -1304,15 +1305,15 @@ spcd_step__install_packages() { ;; *) ;; esac - for spcd_spr__file in "${@}"; do - spcd_os_sed "/etc/yum.repos.d/epel${spcd_spr__file}.repo" \ + for file in "${@}"; do + spcd_os_sed "/etc/yum.repos.d/epel${file}.repo" \ "|^metalink|#metalink|" \ "|https://download.example/pub/epel|${SPCD_URL_EPEL}|" \ "|^#baseurl|baseurl|" done - spcd_spr__file="/etc/yum.repos.d/epel-cisco-openh264.repo" + file="/etc/yum.repos.d/epel-cisco-openh264.repo" if [ -f "${spcd_spr__file}" ]; then - spcd_os_sed "${spcd_spr__file}" \ + spcd_os_sed "${file}" \ "|^enabled=1|#enabled=0|" fi ;;