mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamCleanPath quick exit on empty 'path'
This commit is contained in:
@ -52,6 +52,11 @@ options:
|
||||
- elements whose start matches one of the wildcard(s)
|
||||
- inaccessible directories (with the -strip (at your option)
|
||||
|
||||
Exit status
|
||||
0 on success
|
||||
1 for miscellaneous errors.
|
||||
2 initial value of 'path' is empty
|
||||
|
||||
USAGE
|
||||
exit 1
|
||||
}
|
||||
@ -81,6 +86,9 @@ done
|
||||
dirList="$1"
|
||||
shift
|
||||
|
||||
[ -n "$1" ] || exit 2 # quick exit on empty 'dirList'
|
||||
|
||||
|
||||
##DEBUG echo "input>$dirList<" 1>&2
|
||||
|
||||
# preserve current IFS and split on colon or whitespace
|
||||
|
||||
Reference in New Issue
Block a user