From 71f13ec9dd9f547b09498d31b089eaca192edb06 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 11 Dec 2015 14:21:02 +0000 Subject: [PATCH] foamSequenceVTKFiles: Avoid the -s and -a options for basename Only recent GNU/Linux distributions support this functionality Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1947 --- bin/foamSequenceVTKFiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/foamSequenceVTKFiles b/bin/foamSequenceVTKFiles index b106933ff..86e512228 100755 --- a/bin/foamSequenceVTKFiles +++ b/bin/foamSequenceVTKFiles @@ -94,7 +94,7 @@ if [ ! -d $DIR ]; then fi FILES=$(find $DIR -type f -name *vtk) -NAMES=$(basename -s .vtk -a $FILES | sort -u) +NAMES=$(for f in $FILES; do basename $f .vtk; done | sort -u) if [ -d $OUT ]; then echo "$OUT directory already exists. Deleting links within it..."