Skip to content

Commit

Permalink
create copy of lower dirs (dirs only) + skip test step
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed May 19, 2024
1 parent 51671ee commit a960a5f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
File renamed without changes.
15 changes: 14 additions & 1 deletion bot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a960a5f

Please sign in to comment.