diff options
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index b923a7a93..ed7d1acca 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -278,16 +278,7 @@ function write_image() ps | grep -q $pid if [ $? -eq 0 ]; then /bin/kill -SIGUSR1 $pid - unit=$(tail -n 1 /tmp/backup.out | \ - cut -d'(' -f2 | cut -d')' -f1 |\ - awk '{ print $2 }') - - complete=$(tail -n 1 /tmp/backup.out | \ - cut -d'(' -f2 | cut -d')' -f1 | \ - awk '{ print $1 }' | cut -d'.' -f1) - if [ x"$unit" = x"GB" ]; then - complete=$((complete*1000)) - fi + complete=$(tail -n 1 /tmp/backup.out | awk '{ print $1 }') echo $((complete*100/total)) sleep 1 else |