From 37b85fef3ddc712dbf08d4f6b11304a74d756cc7 Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Tue, 26 Jul 2016 15:56:45 +0300 Subject: [PATCH] Additional safety check in customize_image --- common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.sh b/common.sh index 654f12aa3..1ec7558bf 100644 --- a/common.sh +++ b/common.sh @@ -390,7 +390,7 @@ customize_image() display_alert "Calling image customization script" "customize-image.sh" "info" chroot $CACHEDIR/sdcard /bin/bash -c "/tmp/customize-image.sh $RELEASE $FAMILY $BOARD $BUILD_DESKTOP" umount $CACHEDIR/sdcard/tmp/overlay - rm -r $CACHEDIR/sdcard/tmp/overlay + mountpoint -q $CACHEDIR/sdcard/tmp/overlay || rm -r $CACHEDIR/sdcard/tmp/overlay } userpatch_create()