#!/bin/bash set -e echo "Cloning upstream pungi" git clone https://gitlab.com/redhat/centos-stream/release-engineering/pungi-centos.git -b centos-9-stream /var/tmp/c9s echo "Copying shared data" if [ -d "shared" ]; then /bin/cp /var/tmp/c9s/shared/* shared/ fi echo "Copying prepopulate" /bin/cp /var/tmp/c9s/prepopulate.json . echo "Copying variants" /bin/cp /var/tmp/c9s/variants.xml . echo "Changing to rocky where required in prepopulate" while read -r pattern; do sscript+="$pattern;" done <