From 4561c74941f5090d9500c8c7c8c811eebca619bd Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Tue, 7 May 2024 00:28:27 +0200 Subject: [PATCH] create temp file with stripped dirs --- bot/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/build.sh b/bot/build.sh index 47d807b843..3478a5bbba 100755 --- a/bot/build.sh +++ b/bot/build.sh @@ -213,7 +213,9 @@ else # set permission of the directory to u+rwx # add directory to LOWER_DIRS (':' separated list of directories) LOWER_DIRS= - for remove_dir in $(cat ${determine_outerr} | grep ^REMOVE_DIRECTORY | sed -e 's/^REMOVE_DIRECTORY //'); do + grep ^REMOVE_DIRECTORY ${determine_outerr} | cut -f4- -d'/' > ${determine_outerr}.rm_dirs + #for remove_dir in $(cat ${determine_outerr} | grep ^REMOVE_DIRECTORY | sed -e 's/^REMOVE_DIRECTORY //'); do + for remove_dir in $(cat ${determine_outerr}.rm_dirs); do echo "PROCESS directory: --${remove_dir}--" mkdir -p ${STORAGE}/lower_dirs/${remove_dir} chmod u+rwx ${STORAGE}/lower_dirs/${remove_dir}