aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-02-08 23:29:02 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-02-08 23:29:02 +0100
commitfc5ef56e4ec6c7fdf90c8b53d8b3a35bb7f7ef8f (patch)
treec75dc2808f86ad094b5fccf2290c0eef87b866c8
parentgen_initramfs.sh: copy_binaries(): use global LC_ALL (diff)
downloadgenkernel-fc5ef56e4ec6c7fdf90c8b53d8b3a35bb7f7ef8f.tar.gz
genkernel-fc5ef56e4ec6c7fdf90c8b53d8b3a35bb7f7ef8f.tar.bz2
genkernel-fc5ef56e4ec6c7fdf90c8b53d8b3a35bb7f7ef8f.zip
gen_funcs.sh: check_disk_space_requirements(): use global LC_ALL
Since commit 0785165ca64 we set LC_ALL in global scope. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xgen_funcs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/gen_funcs.sh b/gen_funcs.sh
index 72296e6..ab7a7ce 100755
--- a/gen_funcs.sh
+++ b/gen_funcs.sh
@@ -1853,7 +1853,7 @@ check_disk_space_requirements() {
gen_die "--check-free-disk-space-bootdir value '${CHECK_FREE_DISK_SPACE_BOOTDIR}' is not a valid number!"
fi
- available_free_disk_space=$(unset POSIXLY_CORRECT && LC_ALL="C" df -BM "${BOOTDIR}" | awk '$3 ~ /[0-9]+/ { print $4 }')
+ available_free_disk_space=$(unset POSIXLY_CORRECT && df -BM "${BOOTDIR}" | awk '$3 ~ /[0-9]+/ { print $4 }')
if [ -n "${available_free_disk_space}" ]
then
print_info 2 '' 1 0
@@ -1890,7 +1890,7 @@ check_disk_space_requirements() {
gen_die "--check-free-disk-space-kerneloutputdir value '${CHECK_FREE_DISK_SPACE_KERNELOUTPUTDIR}' is not a valid number!"
fi
- available_free_disk_space=$(unset POSIXLY_CORRECT && LC_ALL="C" df -BM "${KERNEL_OUTPUTDIR}" | awk '$3 ~ /[0-9]+/ { print $4 }')
+ available_free_disk_space=$(unset POSIXLY_CORRECT && df -BM "${KERNEL_OUTPUTDIR}" | awk '$3 ~ /[0-9]+/ { print $4 }')
if [ -n "${available_free_disk_space}" ]
then
print_info 2 '' 1 0