Skip to content

Commit

Permalink
need to create full directory tree in lower dir
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed May 6, 2024
1 parent 7024f84 commit 2828e05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion EESSI-determine-rebuilds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ else
app_dir=${EASYBUILD_INSTALLPATH}/software/${app}
app_module=${EASYBUILD_INSTALLPATH}/modules/all/${app}.lua
echo_yellow "Removing ${app_dir} and ${app_module}..."
echo "REMOVE_SOFTWARE ${app_dir}"
# echo "REMOVE_SOFTWARE ${app_dir}"
find ${app_dir} -type d | sed -e 's/^/REMOVE_DIRECTORY /'
echo "REMOVE_MODULE ${app_module}"
done
else
Expand Down
4 changes: 2 additions & 2 deletions bot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,13 @@ else
-- ./EESSI-determine-rebuilds.sh "${DETERMINE_SCRIPT_ARGS[@]}" "$@" 2>&1 | tee -a ${determine_outerr}

# process output file
# for each line containing 'REMOVE_SOFTWARE some_path'
# for each line containing 'REMOVE_DIRECTORY some_path'
# create a new directory ${STORAGE}/lower_dirs/some_path_stripped
# where the prefix /cvmfs/repo_name is removed from some_path
# set permission of the directory to u+rwx
# add directory to LOWER_DIRS (':' separated list of directories)
LOWER_DIRS=
for remove_dir in $(grep REMOVE_SOFTWARE ${determine_outerr} | cut -f4- -d'/'); do
for remove_dir in $(grep REMOVE_DIRECTORY ${determine_outerr} | cut -f4- -d'/'); do
mkdir -p ${STORAGE}/lower_dirs/${remove_dir}
chmod u+rwx ${STORAGE}/lower_dirs/${remove_dir}
if [[ -z ${LOWER_DIRS} ]]; then
Expand Down

0 comments on commit 2828e05

Please sign in to comment.