Skip to content

Commit 76f4482

Browse files
committed
Fix openfoam-remove-empty-dirs for compressed results
1 parent 21fd7fa commit 76f4482

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/openfoam-remove-empty-dirs.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ openfoam_remove_empty_dirs() {
66
echo "Looking for any time directories without results (e.g. stray functionObjectProperties files, see openfoam-adapter issue #26 on GitHub)..."
77

88
for f in [0-9]* [0-9]*.[0-9]*; do
9-
if ! [ -f "${f}/U" ] && ! [ -f "${f}/T" ]; then
9+
if ! [ -f "${f}/U" ] && ! [ -f "${f}/T" ] && ! [ -f "${f}/U.gz" ] && ! [ -f "${f}/T.gz" ]; then
1010
rm -rfv "${f}"
1111
fi
1212
done
1313
if [ -d processor0 ]; then
1414
for d in processor*; do
1515
cd "${d}"
1616
for f in [0-9]* [0-9]*.[0-9]*; do
17-
if ! [ -f "${f}"/U ] && ! [ -f "${f}"/T ]; then
17+
if ! [ -f "${f}/U" ] && ! [ -f "${f}/T" ] && ! [ -f "${f}/U.gz" ] && ! [ -f "${f}/T.gz" ]; then
1818
rm -rfv "${f}"
1919
fi
2020
done

0 commit comments

Comments
 (0)