Commit aacaa9c0 authored by Henry Weller's avatar Henry Weller
Browse files

foamSequenceVTKFiles: Avoid the -s and -a options for basename

Only recent GNU/Linux distributions support this functionality
Resolves bug-report
parent 40ff6c30
......@@ -94,7 +94,7 @@ if [ ! -d $DIR ]; then
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..."
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment