summaryrefslogtreecommitdiff
path: root/shell/source/unix
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-09-27 11:54:42 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-09-27 11:54:42 +0000
commit47e5abb71fe62cb9e82e0f74e3e39d43c9f8ee63 (patch)
tree1989c84cabf0bace6d15002273e00f9292d50f39 /shell/source/unix
parentb37864c789b48e846e7084abb7e043d47fadc026 (diff)
INTEGRATION: CWS shellfix03 (1.2.118); FILE MERGED
2005/08/23 13:35:45 obr 1.2.118.3: #i51006# ignore directories in which sub 2005/08/23 10:04:10 obr 1.2.118.2: #i51006# -z argument needs quoting 2005/08/04 11:33:28 obr 1.2.118.1: #i51006# search for uptodate products first
Diffstat (limited to 'shell/source/unix')
-rwxr-xr-xshell/source/unix/misc/open-url.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/source/unix/misc/open-url.sh b/shell/source/unix/misc/open-url.sh
index 289b9f273cc3..09a3496b1cad 100755
--- a/shell/source/unix/misc/open-url.sh
+++ b/shell/source/unix/misc/open-url.sh
@@ -5,7 +5,7 @@
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
@@ -101,9 +101,9 @@ if echo $1 | grep '^mailto:' > /dev/null; then
exit 0
else
# mozilla derivates may need -remote semantics
- for i in mozilla netscape thunderbird; do
+ for i in thunderbird mozilla netscape; do
mailer=`which $i`
- if [ ! -z $mailer ]; then
+ if [ ! -z "$mailer" ]; then
run_mozilla $mailer $1
exit 0
fi
@@ -118,9 +118,9 @@ else
exit 0
else
# mozilla derivates may need -remote semantics
- for i in mozilla netscape firefox; do
+ for i in firefox mozilla netscape; do
browser=`which $i`
- if [ ! -z $browser ]; then
+ if [ ! -z "$browser" ]; then
run_mozilla $browser $1
exit 0
fi