diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-27 11:55:00 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-27 11:55:00 +0000 |
commit | e74c72557455fcc20656b4a115885510ff634593 (patch) | |
tree | 711704d55c8f2195bf0ad8a7ebe17f644df3f189 /shell/source/unix/misc/senddoc.sh | |
parent | 47e5abb71fe62cb9e82e0f74e3e39d43c9f8ee63 (diff) |
INTEGRATION: CWS shellfix03 (1.7.28); FILE MERGED
2005/08/23 13:35:45 obr 1.7.28.1: #i51006# ignore directories in which sub
Diffstat (limited to 'shell/source/unix/misc/senddoc.sh')
-rw-r--r-- | shell/source/unix/misc/senddoc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh index 455b127e95b6..b8b393075d50 100644 --- a/shell/source/unix/misc/senddoc.sh +++ b/shell/source/unix/misc/senddoc.sh @@ -6,7 +6,7 @@ URI_ENCODE="awk -f `dirname $0`/uri-encode" which() { if [ ! -z "$1" ]; then for i in `echo $PATH | sed -e 's/^:/.:/g' -e 's/:$/:./g' -e 's/::/:.:/g' -e 's/:/ /g'`; do - if [ -x "$i/$1" ]; then + if [ -x "$i/$1" -a ! -d "$i/$1" ]; then echo "$i/$1" break; fi |