000-sync_gentoo_glsa (366B)
1 #!/bin/bash 2 3 repository_name="${1}" 4 repository_path="${3}" 5 6 [[ ${repository_name} == "gentoo" ]] || exit 0 7 8 source /lib/gentoo/functions.sh 9 10 GLSADIR="${repository_path}"/metadata/glsa 11 ebegin "Updating GLSAs" 12 if [[ -e ${GLSADIR} ]]; then 13 git -C "${GLSADIR}" pull -q --ff-only 14 else 15 git clone -q https://anongit.gentoo.org/git/data/glsa.git "${GLSADIR}" 16 fi 17 eend "$?"