summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/g-i-installation.sh6
1 files changed, 2 insertions, 4 deletions
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
#