Consistent variable expansion where appropriate
This commit is contained in:
parent
fac4559d9a
commit
31dd5f0549
@ -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 "$?"
|
||||
|
@ -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 "$?"
|
||||
|
@ -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 $?
|
||||
|
Loading…
Reference in New Issue
Block a user