From cfe5cc5534c6f38ced5bbfb66b82718da6424ffb Mon Sep 17 00:00:00 2001 From: framp Date: Fri, 23 Aug 2019 15:46:45 +0200 Subject: [PATCH] Fixed issue #84 --- pishrink.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pishrink.sh b/pishrink.sh index 3a4481a..8a4f56d 100755 --- a/pishrink.sh +++ b/pishrink.sh @@ -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=$?