mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: foamCleanPath: incorrect test for single argument
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
# ========= |
|
# ========= |
|
||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
# \\/ M anipulation |
|
# \\/ M anipulation |
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
@ -50,7 +50,7 @@ options:
|
|||||||
Prints its argument (which should be a ':' separated list) cleansed from
|
Prints its argument (which should be a ':' separated list) cleansed from
|
||||||
- duplicate elements
|
- duplicate elements
|
||||||
- elements whose start matches one of the wildcard(s)
|
- elements whose start matches one of the wildcard(s)
|
||||||
- inaccessible directories (with the -strip (at your option)
|
- inaccessible directories (with the -strip option)
|
||||||
|
|
||||||
Exit status
|
Exit status
|
||||||
0 on success
|
0 on success
|
||||||
@ -86,7 +86,7 @@ done
|
|||||||
dirList="$1"
|
dirList="$1"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
[ -n "$1" ] || exit 2 # quick exit on empty 'dirList'
|
[ -n "$dirList" ] || exit 2 # quick exit on empty 'dirList'
|
||||||
|
|
||||||
|
|
||||||
##DEBUG echo "input>$dirList<" 1>&2
|
##DEBUG echo "input>$dirList<" 1>&2
|
||||||
|
|||||||
Reference in New Issue
Block a user