Skip to content
Snippets Groups Projects
Commit e2cf8f5c authored by Mark Olesen's avatar Mark Olesen
Browse files

ENH: foamCleanPath quick exit on empty 'path'

parent e40c0c65
Branches
Tags
......@@ -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
......
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