summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-17 10:04:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-17 10:23:33 +0200
commit7ff0a2e41c872dbfacf132ff756ed10dc8f3e8c7 (patch)
treec77656acbab77edf880da3a392032cdddecc1615 /shell
parent288d1a3ff4a5b2b96b278c791c52376d2c3c980b (diff)
Quoting clean-up
cosmetics only; even the unquoted echo $1 would not have caused any problems Change-Id: Iabae872fe6232dc1cd627b736f0c4fc5a8611037
Diffstat (limited to 'shell')
-rwxr-xr-xshell/source/unix/misc/open-url.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/unix/misc/open-url.sh b/shell/source/unix/misc/open-url.sh
index 4b1d6d41c3c7..cbad78dbe5dc 100755
--- a/shell/source/unix/misc/open-url.sh
+++ b/shell/source/unix/misc/open-url.sh
@@ -33,7 +33,7 @@ which() {
# checks for the original mozilla start script(s)
# and restrict the "-remote" semantics to those.
run_mozilla() {
- if file "$1" | grep "script" > /dev/null && grep "NPL" "$1" > /dev/null; then
+ if file "$1" | grep script > /dev/null && grep NPL "$1" > /dev/null; then
"$1" -remote 'ping()' 2>/dev/null >/dev/null
if [ $? -eq 2 ]; then
"$1" "$2" &
@@ -46,7 +46,7 @@ run_mozilla() {
}
# special handling for mailto: uris
-if echo $1 | grep '^mailto:' > /dev/null; then
+if echo "$1" | grep '^mailto:' > /dev/null; then
# check for xdg-email
mailer=`which xdg-email`
if [ ! -z "$mailer" ]; then