From d09e015e0787edac5fbcafdabc4a0ff28e481482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 14 Mar 2023 12:37:18 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Support=20/export=20folder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Anything created by the build scripts inside /export will be copied to /export in the workspace folder. --- src/customize | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/customize b/src/customize index 168c8a5..4842300 100644 --- a/src/customize +++ b/src/customize @@ -150,6 +150,14 @@ pushd $EDITBASE_WORKSPACE restoreLd fi popd + + # if there are any files to export, do that now and clean up the export folder + if [ -d "$EDITBASE_MOUNT_PATH/export" ]; then + pushd $EDITBASE_WORKSPACE + copy_files "$EDITBASE_MOUNT_PATH/export" + popd + rm -rf "$EDITBASE_MOUNT_PATH/export" + fi # unmount first boot, then root partition unmount_image $EDITBASE_MOUNT_PATH