#!/bin/bash
# copy artifacts over, ignoring and reporting noarch
# all noarch packages should be brought down from peridot instead

scp /opt/build/repo/*.riscv64.rpm box:/var/www/html/pub/riscv/bootstrap

if ls /opt/build/repo/*.rpm | grep -q noarch.rpm; then
	ls /opt/build/repo/*.noarch.rpm
fi

ssh -q box "/bin/bash /home/pulp/bin/cr_bootstrap"

echo "Cleaning up /opt/build/repo"
rm -rf /opt/build/repo/*
