From a960a5fecbd76f9330665a6f0f61ab0a564b26cc Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Sun, 19 May 2024 22:02:45 +0200 Subject: [PATCH] create copy of lower dirs (dirs only) + skip test step --- bot/{test.sh => _test.sh} | 0 bot/build.sh | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) rename bot/{test.sh => _test.sh} (100%) diff --git a/bot/test.sh b/bot/_test.sh similarity index 100% rename from bot/test.sh rename to bot/_test.sh diff --git a/bot/build.sh b/bot/build.sh index 2a690ecb20..c5fc9bb8a5 100755 --- a/bot/build.sh +++ b/bot/build.sh @@ -273,7 +273,20 @@ if [[ ! -z ${SHARED_FS_PATH} ]]; then BUILD_STEP_ARGS+=("--host-injections" "${SHARED_FS_PATH}/host-injections") fi if [[ ! -z ${LOWER_DIRS} ]]; then - BUILD_STEP_ARGS+=("--lower-dirs" "${LOWER_DIRS}") + # make copy of LOWER_DIRS but only retain directories + lower_parent_dir=$(dirname ${LOWER_DIRS}) + the_lower_dir=$(basename ${LOWER_DIRS}) + LOWER_DIRS_ONLY="${lower_parent_dir}/${the_lower_dir}_2" + mkdir -p ${LOWER_DIRS_ONLY} + echo "contents of LOWER_DIRS_ONLY (after mkdir -p)" + ls -lisaR ${LOWER_DIRS_ONLY} + cp -a ${LOWER_DIRS}/ ${LOWER_DIRS_ONLY} + echo "contents of LOWER_DIRS_ONLY (after cp -a)" + ls -lisaR ${LOWER_DIRS_ONLY} + find ${LOWER_DIRS_ONLY} -type f -exec rm {} \; + echo "contents of LOWER_DIRS_ONLY (find ... rm)" + ls -lisaR ${LOWER_DIRS_ONLY} + BUILD_STEP_ARGS+=("--lower-dirs" "${LOWER_DIRS_ONLY}") fi # create tmp file for output of build step