From b433214b26d639aea85e1f8a2d6571ef8bc82e9c Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 29 Oct 2014 16:01:44 +0100 Subject: g-i-i: remove expected errors from output --- bin/g-i-installation.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index 23cc8a0e..83859144 100644 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -112,12 +112,10 @@ cleanup_all() { # # cleanup image mount # - ( sudo umount -l $IMAGE_MNT ; rmdir $IMAGE_MNT ) & + ( sudo umount -l $IMAGE_MNT && rmdir $IMAGE_MNT ) 2> /dev/null & cd $RESULTS echo -n "Last screenshot: " - if [ -f snapshot_000000.ppm ] ; then - ls -t1 snapshot_??????.ppm | tail -1 - fi + (ls -t1 snapshot_??????.ppm || true ) | tail -1 # # create video # -- cgit v1.2.3-70-g09d2