From fa34c193ee70d83f4c4a9a8836515274617a546d Mon Sep 17 00:00:00 2001 From: thespad Date: Thu, 5 Dec 2024 09:24:35 +0000 Subject: [PATCH] Ignore images with no root folder --- root/etc/s6-overlay/s6-rc.d/init-d2-config/run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-d2-config/run b/root/etc/s6-overlay/s6-rc.d/init-d2-config/run index 346451b..b283495 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-d2-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-d2-config/run @@ -92,7 +92,9 @@ while [[ ${BASEIMAGENAME} =~ "baseimage" ]]; do done for i in /tmp/*; do - cp -R "${i}/root" "/work/merge" + if [[ -d "${i}/root" ]];then + cp -R "${i}/root" "/work/merge" + fi done shopt -s globstar