From 99e018bf39f60f923645e7770bd1cd3a3a6da1b2 Mon Sep 17 00:00:00 2001 From: urpylka Date: Thu, 8 Feb 2018 20:36:30 +0300 Subject: [PATCH] Add disable 'set -e' in resize_fs() --- image/image-config.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/image/image-config.sh b/image/image-config.sh index 6a60bfc5..3baa9a5d 100755 --- a/image/image-config.sh +++ b/image/image-config.sh @@ -48,6 +48,8 @@ resize_fs() { # STATIC # TEMPLATE: resize_fs $SIZE $JENKINS_HOME $IMAGE_NAME $DEV_ROOTFS + set +e + # https://ru.wikipedia.org/wiki/%D0%A0%D0%B0%D0%B7%D1%80%D0%B5%D0%B6%D1%91%D0%BD%D0%BD%D1%8B%D0%B9_%D1%84%D0%B0%D0%B9%D0%BB # https://raspberrypi.stackexchange.com/questions/13137/how-can-i-mount-a-raspberry-pi-linux-distro-image @@ -76,6 +78,8 @@ resize_fs() { && resize2fs $4 \ && echo -e "\033[0;31m\033[1mUmount loop-image\033[0m\033[0m" \ && losetup -d $DEV_IMAGE + + set -e } publish_image() {