Skip to content

Commit

Permalink
alternative loop
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed May 6, 2024
1 parent 4561c74 commit 290dc08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ else
LOWER_DIRS=
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
wc -l ${determine_outerr}.rm_dirs
#for remove_dir in "$(cat ${determine_outerr}.rm_dirs)"; do
cat ${determine_outerr}.rm_dirs | while read remove_dir; do
echo "PROCESS directory: --${remove_dir}--"
mkdir -p ${STORAGE}/lower_dirs/${remove_dir}
chmod u+rwx ${STORAGE}/lower_dirs/${remove_dir}
Expand Down

0 comments on commit 290dc08

Please sign in to comment.