From 19451a004bc107781fd5524a63de51282f419fa6 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/pishrink.sh b/pishrink.sh index a241323..3596072 100755 --- a/pishrink.sh +++ b/pishrink.sh @@ -154,6 +154,7 @@ fi trap cleanup ERR EXIT #Gather info +export LANG=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)