fix issue #120: running fails on some locale environment

This commit is contained in:
noodlefighter 2019-12-19 14:57:19 +08:00
parent 83eb694145
commit 19451a004b
1 changed files with 1 additions and 0 deletions

View File

@ -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)