Skip to content

Commit

Permalink
don't use cut
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed May 6, 2024
1 parent dbe0e3c commit 620695f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 620695f

Please sign in to comment.