Consistent variable expansion where appropriate

This commit is contained in:
hasufell 2015-08-17 17:58:24 +02:00
parent fac4559d9a
commit 31dd5f0549
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
3 changed files with 11 additions and 11 deletions

View File

@ -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 "$?"

View File

@ -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 "$?"

View File

@ -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 $?