Set LC_ALL=C into dib-run-parts env

Force LC_ALL to C to allow printf to work independently
from the locale. Gives invalid number error if run in non-english
locale.

Port to dib-utils of: Ia68853505485fefbf0890313456e7edb6097666b
Change-Id: Ibbfa7a4a91dca72b16bb8fcb9602b71eccf54008
This commit is contained in:
Alexis Lee 2014-07-08 15:12:36 +01:00
parent 6ab247204e
commit dade7ef1aa
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ for target in $(find . -name 'start_*' -printf '%f\n') ; do
start_seconds=$(cat $target)
stop_seconds=$(cat $stop_file)
duration=$(python -c "print($stop_seconds - $start_seconds)")
LC_NUMERIC=C printf "%-40s %10.3f\n" ${target##start_} $duration
LC_ALL=C printf "%-40s %10.3f\n" ${target##start_} $duration
done
popd > /dev/null
rm -rf $PROFILE_DIR