Skip to content

Instantly share code, notes, and snippets.

@b10n1k
Created February 1, 2024 16:12
Show Gist options
  • Save b10n1k/61e2b95d57eafc34d1de0ebb4b49d6e7 to your computer and use it in GitHub Desktop.
Save b10n1k/61e2b95d57eafc34d1de0ebb4b49d6e7 to your computer and use it in GitHub Desktop.
# GENERATED FILE - DO NOT EDIT
set -eo pipefail
for f in /home/iob/Documents/Work/qatools_repos/openqa-trigger-from-obs/t/obs/openSUSE:Factory:Staging:B/{files_,Media}*.lst; do
[ ! -f "$f" ] || : > "$f"
done
[ ! -f /home/iob/Documents/Work/qatools_repos/openqa-trigger-from-obs/t/obs/openSUSE:Factory:Staging:B/../rsync.secret ] || rsync_pwd_option=--password-file=/home/iob/Documents/Work/qatools_repos/openqa-trigger-from-obs/t/obs/openSUSE:Factory:Staging:B/../rsync.secret
rsync -4 --list-only $rsync_pwd_option obspublish-stage::openqa/openSUSE:Factory:Staging:B/images/x86_64/kiwi-templates-Minimal:kvm-and-xen/ | grep -o '.*Minimal.*kvm-and-xen.*\.qcow2$' | awk '{ $1=$2=$3=$4=""; print substr($0,5); }' | grep -E 'x86_64' >> /home/iob/Documents/Work/qatools_repos/openqa-trigger-from-obs/t/obs/openSUSE:Factory:Staging:B/files_iso.lst
rsync -4 --list-only $rsync_pwd_option obspublish-stage::openqa/openSUSE:Factory:Staging:B/images/x86_64/openSUSE-MicroOS:ContainerHost-kvm-and-xen/ | grep -o '.*MicroOS.*ContainerHost-kvm-and-xen.*\.qcow2$' | awk '{ $1=$2=$3=$4=""; print substr($0,5); }' | grep -E 'x86_64' >> /home/iob/Documents/Work/qatools_repos/openqa-trigger-from-obs/t/obs/openSUSE:Factory:Staging:B/files_iso.lst
rsync -4 --list-only $rsync_pwd_option obspublish-stage::openqa/openSUSE:Factory:Staging:B/images/x86_64/*product*/*Tumbleweed-DVD* | grep -P 'Media1?.iso$' | awk '{ $1=$2=$3=$4=""; print substr($0,5); }' >> /home/iob/Documents/Work/qatools_repos/openqa-trigger-from-obs/t/obs/openSUSE:Factory:Staging:B/files_iso.lst
rsync -4 --list-only $rsync_pwd_option obspublish-stage::openqa/openSUSE:Factory:Staging:B/images/x86_64/*product*/*MicroOS-DVD* | grep -P 'Media1?.iso$' | awk '{ $1=$2=$3=$4=""; print substr($0,5); }' >> /home/iob/Documents/Work/qatools_repos/openqa-trigger-from-obs/t/obs/openSUSE:Factory:Staging:B/files_iso.lst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment