summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier>2008-09-07 06:42:44 +0000
committervapier <vapier>2008-09-07 06:42:44 +0000
commit31a492f0d9aa13cc9945765239409b45e2e78dc6 (patch)
tree2c879ad7d2933b316aec439c97b4844c0258ace1
parentrework job handling so we dont lose status information #204299 (diff)
downloadlocale-gen-31a492f0d9aa13cc9945765239409b45e2e78dc6.tar.gz
locale-gen-31a492f0d9aa13cc9945765239409b45e2e78dc6.tar.bz2
locale-gen-31a492f0d9aa13cc9945765239409b45e2e78dc6.zip
dont show error if config file doesnt exist
-rwxr-xr-xlocale-gen4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale-gen b/locale-gen
index 2b02034..8f2cea3 100755
--- a/locale-gen
+++ b/locale-gen
@@ -45,7 +45,7 @@ show_usage() {
}
show_version() {
local b="(" a=")"
- local cvsver="$Revision: 1.26 $b $Date: 2008/03/23 13:17:00 $a"
+ local cvsver="$Revision: 1.27 $b $Date: 2008/09/07 06:42:44 $a"
echo "locale-gen-${cvsver//: }"
exit 0
}
@@ -122,7 +122,7 @@ ALIAS=${DESTDIR}usr/share/locale/locale.alias
# Grab any user options in their config file
options=$(sed -n \
-e '/^[[:space:]]*#%/s:^[[:space:]]*#%[[:space:]]*::p'\
- "${CONFIG}"
+ "${CONFIG}" 2>/dev/null
)
IFS=$'\n'
for option in ${options} ; do