#!/bin/sh

mkdir -p smash/channels/

pushd smash/channels/SUSE:Channels >/dev/null
osc -q up >/dev/null
popd >/dev/null
pushd smash/channels/SUSE:Channels:EOL >/dev/null
osc -q up >/dev/null
popd>/dev/null

if [ ! -d cvelist ]; then
	git clone https://github.com/cveproject/cvelist.git
fi
pushd cvelist >/dev/null
git pull -q
popd >/dev/null


if [ ! -d cvelist ]; then
	git clone https://github.com/cveproject/cvelistV5.git
fi
pushd cvelistV5 >/dev/null
git pull -q
popd >/dev/null

if [ ! -d image-scanning ]; then
	git clone git@github.com:rancher/image-scanning.git
fi
pushd image-scanning >/dev/null
git pull -q
popd >/dev/null

if [ ! -d vulns ]; then
	git clone https://git.kernel.org/pub/scm/linux/security/vulns.git
fi
pushd vulns >/dev/null
git pull -q
popd >/dev/null
