We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21fd7fa commit 76f4482Copy full SHA for 76f4482
tools/openfoam-remove-empty-dirs.sh
@@ -6,15 +6,15 @@ openfoam_remove_empty_dirs() {
6
echo "Looking for any time directories without results (e.g. stray functionObjectProperties files, see openfoam-adapter issue #26 on GitHub)..."
7
8
for f in [0-9]* [0-9]*.[0-9]*; do
9
- if ! [ -f "${f}/U" ] && ! [ -f "${f}/T" ]; then
+ if ! [ -f "${f}/U" ] && ! [ -f "${f}/T" ] && ! [ -f "${f}/U.gz" ] && ! [ -f "${f}/T.gz" ]; then
10
rm -rfv "${f}"
11
fi
12
done
13
if [ -d processor0 ]; then
14
for d in processor*; do
15
cd "${d}"
16
17
- if ! [ -f "${f}"/U ] && ! [ -f "${f}"/T ]; then
18
19
20
0 commit comments