From bb2ae1bad6de67ea3cb3b86e9936b489cc45b269 Mon Sep 17 00:00:00 2001 From: sfalexrog Date: Sun, 24 Feb 2019 20:57:01 +0300 Subject: [PATCH] builder: Be more thorough about not copying the image into itself --- builder/image-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/image-build.sh b/builder/image-build.sh index 77f77adf..e44c522d 100755 --- a/builder/image-build.sh +++ b/builder/image-build.sh @@ -84,7 +84,7 @@ ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} exec ${SCRIPTS_DIR}'/image-init.sh' shopt -s dotglob for dir in ${REPO_DIR}/*; do # Don't try to copy image into itself - if [ $dir != 'images' ]; then + if [[ $dir != *"images" ]]; then ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy $dir '/home/pi/catkin_ws/src/clever/' fi; done