Skip to content
Snippets Groups Projects
Commit 210fb002 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

add some messages for repair mode

parent 6acb1797
No related branches found
No related tags found
1 merge request!168Draft: run du
Pipeline #122519 passed
......@@ -94,11 +94,13 @@ common:setup:
EOF
:>list
if [ -n "${REPAIR}" ]; then
echo "removing broken ROOT files from cache"
for file in $(find /scratch/snakemake-cache -type f); do
if file -b "$file" | grep -E '^ROOT file' >/dev/null; then
echo "$file" > list
fi
done
echo "located $(wc -l list) ROOT files"
cat list | python filter_broken.py | tee broken
cat broken | xargs --no-run-if-empty rm -v
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment