summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-02 14:00:17 +0200
committerErich Eckner <git@eckner.net>2017-06-02 14:00:17 +0200
commitde8e004cdefb9f908c72bef3f19635a7e7708aae (patch)
treea591bb318ccc2df641faa269ffe327b9a0e4c50b
parent2fd26ea12eca52c3724e16688d811195072821ea (diff)
downloadbuilder-de8e004cdefb9f908c72bef3f19635a7e7708aae.tar.xz
conf/default.conf: add "export LANG=C"
-rwxr-xr-xbin/build-master-status4
-rwxr-xr-xconf/default.conf1
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 62ffd9a..61eef0d 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -26,8 +26,8 @@ printf 'The build list contains %d tasks (incl. broken: %d).\n' "$[${tasks}-${br
printf 'There are %d testing/staging packages.\n' "${staging}"
printf 'There are %d broken packages.\n' "${broken}"
if [ $[${broken}+${staging}] -ne 0 ]; then
- LANG=C printf '%.1f%% of all packages are broken.\n' "$(bc <<< "scale=10; 100*${broken}/(${broken}+${staging})")"
+ printf '%.1f%% of all packages are broken.\n' "$(bc <<< "scale=10; 100*${broken}/(${broken}+${staging})")"
fi
if [ $[${staging}+${tasks}-${broken}] -ne 0 ]; then
- LANG=C printf '%.1f%% of the planned work has been done.\n' "$(bc <<< "scale=10; 100*${staging}/(${staging}+${tasks}-${broken})")"
+ printf '%.1f%% of the planned work has been done.\n' "$(bc <<< "scale=10; 100*${staging}/(${staging}+${tasks}-${broken})")"
fi
diff --git a/conf/default.conf b/conf/default.conf
index 60cf53c..de0ab65 100755
--- a/conf/default.conf
+++ b/conf/default.conf
@@ -3,6 +3,7 @@
# set up some common variables
set -e
+export LANG=C
# dirty hack to get this stuff debugable from a bash
if [ "x$0" == "x-bash" ] || [ "x$0" == "xbash" ]; then