Merge pull request #108 from framps/issue84

Fixed issue #84
This commit is contained in:
Drew Bonasera 2019-08-26 01:22:52 -04:00 committed by GitHub
commit 95f4839152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ if ! endresult=$(parted -ms "$img" unit B print free); then
exit -15
fi
endresult=$(tail -1 <<< $endresult | cut -d ':' -f 2 | tr -d 'B')
endresult=$(tail -1 <<< "$endresult" | cut -d ':' -f 2 | tr -d 'B')
logVariables $LINENO endresult
if ! truncate -s $endresult "$img"; then
rc=$?