From 712eba02161a21e95f194630ff7b9c7d526eb0a8 Mon Sep 17 00:00:00 2001 From: noodlefighter Date: Thu, 19 Dec 2019 14:57:19 +0800 Subject: [PATCH] fix issue #120: running fails on some locale environment --- pishrink.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pishrink.sh b/pishrink.sh index a241323..bcbab73 100755 --- a/pishrink.sh +++ b/pishrink.sh @@ -154,6 +154,8 @@ fi trap cleanup ERR EXIT #Gather info +export LANG=en_US.UTF-8 +export LANGUAGE=en_US.UTF-8 info "Gatherin data" beforesize=$(ls -lh "$img" | cut -d ' ' -f 5) parted_output=$(parted -ms "$img" unit B print | tail -n 1)