summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2021-08-06 23:09:03 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2021-08-06 23:09:03 +0200
commit799b0ed2ef39e49b56f0204bc8db52d0353b1e63 (patch)
tree65c1e50f981a6a4aeda4c6c4b31fdc89f263442f
parentomit spam when in quiet mode (diff)
downloadlocale-gen-799b0ed2ef39e49b56f0204bc8db52d0353b1e63.tar.gz
locale-gen-799b0ed2ef39e49b56f0204bc8db52d0353b1e63.tar.bz2
locale-gen-799b0ed2ef39e49b56f0204bc8db52d0353b1e63.zip
Ensure DESTDIR ends with a /
Bug: https://bugs.gentoo.org/779790 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-xlocale-gen1
1 files changed, 1 insertions, 0 deletions
diff --git a/locale-gen b/locale-gen
index b41258f..264cd23 100755
--- a/locale-gen
+++ b/locale-gen
@@ -127,6 +127,7 @@ if [[ ${EROOT} != "/" ]] ; then
fi
if [[ -n ${DESTDIR} ]] ; then
+ DESTDIR="${DESTDIR%/}/"
einfo "Building locales in DESTDIR '${DESTDIR}'"
else
DESTDIR=${EROOT}