From dec4e3bed5cd5a53aab8d3d0d515fc72613d4dfa Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 9 Dec 2012 23:39:02 +0100 Subject: fixup 3 issues with g-i-installations --- bin/g-i-installation.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index 9d662f66..441700a7 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -77,8 +77,8 @@ cleanup_all() { # rename .bak files back to .ppm if find . -name "*.ppm.bak" ; then for i in *.ppm.bak ; do - echo mv -v $i ${i%.bak.ppm}.ppm - mv -v $i ${i%.bak.ppm}.ppm + echo "mv -v $i $(echo $i | sed -s 's#.ppm.bak#.ppm#')" + mv -v $i $(echo $i | sed -s 's#.ppm.bak#.ppm#') done fi set -x @@ -162,10 +162,14 @@ monitor_installation() { # # break if qemu-system has finished # - vncsnapshot -quiet -allowblank $DISPLAY snapshot_$(printf "%06d" $NR).jpg 2>/dev/null \ - || ( echo "could not take vncsnapshot, no qemu running on $DISPLAY" ; touch $RESULTS/qemu_quit ; break ) - convert snapshot_$(printf "%06d" $NR).jpg snapshot_$(printf "%06d" $NR).ppm - rm snapshot_$(printf "%06d" $NR).jpg + vncsnapshot -quiet -allowblank $DISPLAY snapshot_$(printf "%06d" $NR).jpg 2>/dev/null || touch $RESULTS/qemu_quit + if [ ! -f touch $RESULTS/qemu_quit ] ; then + convert snapshot_$(printf "%06d" $NR).jpg snapshot_$(printf "%06d" $NR).ppm + rm snapshot_$(printf "%06d" $NR).jpg + else + echo "could not take vncsnapshot, no qemu running on $DISPLAY" + break + fi # give signal we are still running if [ $(($NR % 14)) -eq 0 ] ; then date -- cgit v1.2.3-70-g09d2