diff --git a/bot/build.sh b/bot/build.sh index c8ac217c4f..47d807b843 100755 --- a/bot/build.sh +++ b/bot/build.sh @@ -213,8 +213,7 @@ else # set permission of the directory to u+rwx # add directory to LOWER_DIRS (':' separated list of directories) LOWER_DIRS= - head ${determine_outerr} | cat -n - for remove_dir in $(cat ${determine_outerr} | grep ^REMOVE_DIRECTORY | cut -f4- -d'/'); do + for remove_dir in $(cat ${determine_outerr} | grep ^REMOVE_DIRECTORY | sed -e 's/^REMOVE_DIRECTORY //'); do echo "PROCESS directory: --${remove_dir}--" mkdir -p ${STORAGE}/lower_dirs/${remove_dir} chmod u+rwx ${STORAGE}/lower_dirs/${remove_dir}