diff --git a/bot/build.sh b/bot/build.sh index 1b77be2a8c..c8ac217c4f 100755 --- a/bot/build.sh +++ b/bot/build.sh @@ -213,7 +213,8 @@ else # 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_DIRECTORY ${determine_outerr} | cut -f4- -d'/')"; do + head ${determine_outerr} | cat -n + for remove_dir in $(cat ${determine_outerr} | grep ^REMOVE_DIRECTORY | cut -f4- -d'/'); do echo "PROCESS directory: --${remove_dir}--" mkdir -p ${STORAGE}/lower_dirs/${remove_dir} chmod u+rwx ${STORAGE}/lower_dirs/${remove_dir}