summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-09-27 02:38:45 -0400
committerMike Frysinger <vapier@gentoo.org>2021-09-27 02:38:45 -0400
commit953486683088c5aed6af94e97644a64c68e8d1f5 (patch)
tree02c7be6bba024e2d4e5c396fc6f1bd339913e727
parentadd quotes around : ${...} defaults (diff)
downloadlocale-gen-953486683088c5aed6af94e97644a64c68e8d1f5.tar.gz
locale-gen-953486683088c5aed6af94e97644a64c68e8d1f5.tar.bz2
locale-gen-953486683088c5aed6af94e97644a64c68e8d1f5.zip
fix hint about use of / in locale names
We checked $ret outside of the subshell where it was set, so this code never actually fired. Move it up to where it should work. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xlocale-gen8
1 files changed, 4 insertions, 4 deletions
diff --git a/locale-gen b/locale-gen
index 03caff2..c746eef 100755
--- a/locale-gen
+++ b/locale-gen
@@ -299,14 +299,14 @@ generate_locale() {
elif [[ ${ret} -ne 0 ]] ; then
eerror "${disp}: ${x}"
fi
+
+ if [[ ${ret} -ne 0 && ${locale} == */* ]] ; then
+ ewarn "Perhaps you meant to use a space instead of a / in your config file ?"
+ fi
exit ${ret}
) &
JOB_PIDS+=( $! )
: $(( ++JOB_IDX_E ))
-
- if [[ ${ret} != 0 && ${locale} == */* ]] ; then
- ewarn "Perhaps you meant to use a space instead of a / in your config file ?"
- fi
}
JOB_PIDS=()