diff --git a/etc/portage/postsync.d/sync_dtd b/etc/portage/postsync.d/sync_dtd index 77e3551..877a47a 100755 --- a/etc/portage/postsync.d/sync_dtd +++ b/etc/portage/postsync.d/sync_dtd @@ -6,9 +6,9 @@ source /etc/portage/util-functions.sh DTDDIR="${PORTDIR}"/metadata/dtd ebegin "Updating DTDs" -if [[ -e $DTDDIR ]]; then - git -C "$DTDDIR" pull --ff +if [[ -e ${DTDDIR} ]]; then + git -C "${DTDDIR}" pull --ff else - git clone https://anongit.gentoo.org/git/data/dtd.git "$DTDDIR" + git clone https://anongit.gentoo.org/git/data/dtd.git "${DTDDIR}" fi eend "$?" diff --git a/etc/portage/postsync.d/sync_glsa b/etc/portage/postsync.d/sync_glsa index 7c63b53..9596959 100755 --- a/etc/portage/postsync.d/sync_glsa +++ b/etc/portage/postsync.d/sync_glsa @@ -6,9 +6,9 @@ source /etc/portage/util-functions.sh GLSADIR="${PORTDIR}"/metadata/glsa ebegin "Updating GLSAs" -if [[ -e $GLSADIR ]]; then - git -C "$GLSADIR" pull --ff +if [[ -e ${GLSADIR} ]]; then + git -C "${GLSADIR}" pull --ff else - git clone https://anongit.gentoo.org/git/data/glsa.git "$GLSADIR" + git clone https://anongit.gentoo.org/git/data/glsa.git "${GLSADIR}" fi eend "$?" diff --git a/etc/portage/postsync.d/sync_news b/etc/portage/postsync.d/sync_news index 8818738..73241e9 100755 --- a/etc/portage/postsync.d/sync_news +++ b/etc/portage/postsync.d/sync_news @@ -6,17 +6,17 @@ source /etc/portage/util-functions.sh NEWSDIR="${PORTDIR}"/metadata/news ebegin "Updating news items" -if [[ -e $NEWSDIR ]]; then - git -C "$NEWSDIR" pull --ff +if [[ -e ${NEWSDIR} ]]; then + git -C "${NEWSDIR}" pull --ff else - git clone https://anongit.gentoo.org/git/proj/gentoo-news.git "$NEWSDIR" + git clone https://anongit.gentoo.org/git/proj/gentoo-news.git "${NEWSDIR}" fi eend_die $? ebegin "Cleaning news git repo" -git -C "$NEWSDIR" clean -fdxq +git -C "${NEWSDIR}" clean -fdxq eend_die $? ebegin "Copying news to base directory" -cp -a "$NEWSDIR"/*/* "$NEWSDIR" +cp -a "${NEWSDIR}"/*/* "${NEWSDIR}" eend $?