Skip to content

Commit

Permalink
updated concatenation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-glisman committed Apr 5, 2024
1 parent bf6b829 commit b3705cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions scripts/maintenance/batch_concatenate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ input_dirs=("${input_dirs[@]/#/${input_base_dir}/}")
# get dir of this file
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"

# FIXME: remove this line
# drop first 4 elements
input_dirs=("${input_dirs[@]:4}")

# #######################################################################################
# Call script in parallel ###############################################################
# #######################################################################################
Expand Down
12 changes: 6 additions & 6 deletions scripts/maintenance/concatenate_sim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ echo "INFO: Cleaning up"
echo ""
} >>"${log_file_cleanup}" 2>&1

# {
# # iterate over directories and delete backup files
# for dir in "${archive_dir}" "${concat_dir}" "${nosol_dir}" "."; do
# find "${dir}" -type f -name '#*#' -delete || true
# done
# } >>"${log_file_cleanup}" 2>&1
{
# iterate over directories and delete backup files
for dir in "${archive_dir}" "${concat_dir}" "${nosol_dir}" "."; do
find "${dir}" -type f -name '#*#' -delete || true
done
} >>"${log_file_cleanup}" 2>&1

echo "CRITICAL: Finished Concatenation for simulation ${sim_name} at directory ${cwd}"

0 comments on commit b3705cc

Please sign in to comment.