@@ -629,7 +629,7 @@ install_file() {
629629
630630 repo=" /etc/yum.repos.d/${collection/ core/ } -release.repo"
631631 rpm -Uvh --oldpackage --replacepkgs " $2 "
632- if [[ " $collection " =~ core ]]; then
632+ if [[ " $collection " != puppetcore * -nightly && " $collection " =~ core ]]; then
633633 if [[ -n $username ]]; then
634634 sed -i " s/^#\?username=.*/username=${username} /" " ${repo} "
635635 fi
@@ -661,7 +661,7 @@ install_file() {
661661 fi
662662
663663 run_cmd " zypper install --no-confirm '$2 '"
664- if [[ " $collection " =~ core ]]; then
664+ if [[ " $collection " != puppetcore * -nightly && " $collection " =~ core ]]; then
665665 if [[ -n $username ]]; then
666666 sed -i " s/^username=.*/username=${username} /" " /etc/zypp/credentials.d/PuppetcoreCreds"
667667 fi
@@ -842,7 +842,7 @@ case $platform in
842842 if [[ $( uname -p) == " arm" ]]; then
843843 arch=" arm64"
844844 fi
845- if [[ " $collection " =~ " puppetcore" ]]; then
845+ if [[ " $collection " != puppetcore* -nightly && " $collection " =~ core ]]; then
846846 if [[ -z " $version " ]]; then
847847 critical " You must provide a version to install the agent from puppetcore on MacOS/Windows."
848848 exit 1
@@ -854,7 +854,7 @@ case $platform in
854854 download_url=" ${mac_source} ?type=native&version=${version} &os_name=osx&os_version=${platform_version} &os_arch=${arch} "
855855 fi
856856 else
857- download_url=" ${mac_source} /mac/${collection} /${platform_version} /${arch} /${filename} "
857+ download_url=" ${mac_source} /mac/${collection/ core / } /${platform_version} /${arch} /${filename} "
858858 fi
859859 ;;
860860 * )
0 commit comments