Fixes from Scott Schwartz
This commit is contained in:
parent
9d7a2e6e3c
commit
0156f05f49
1 changed files with 10 additions and 12 deletions
22
bin/web
22
bin/web
|
|
@ -52,27 +52,22 @@ plumbapple()
|
||||||
|
|
||||||
plumbunix()
|
plumbunix()
|
||||||
{
|
{
|
||||||
case ${BROWSER:-firefox} in
|
case "${BROWSER:=firefox}" in
|
||||||
# Other browsers here
|
# Other browsers here
|
||||||
# ...
|
# ...
|
||||||
*opera*)
|
*opera*)
|
||||||
$BROWSER -remote 'openURL('$i',new-page)'
|
$BROWSER -remote 'openURL('"$i"',new-page)'
|
||||||
;;
|
;;
|
||||||
*firebird*)
|
*firebird*)
|
||||||
$BROWSER -remote 'openURL('$i',new-window)'
|
$BROWSER -remote 'openURL('"$i"',new-window)'
|
||||||
;;
|
;;
|
||||||
*firefox*)
|
*firefox*)
|
||||||
$BROWSER -remote 'openURL('$i',new-tab)'
|
$BROWSER -remote 'openURL('"$i"',new-tab)' ||
|
||||||
;;
|
$BROWSER "$i"
|
||||||
x-)
|
|
||||||
BROWSER=firefox
|
|
||||||
$BROWSER -remote 'openURL('$i',new-tab)'
|
|
||||||
;;
|
;;
|
||||||
*mozilla*)
|
*mozilla*)
|
||||||
$BROWSER -remote 'openURL('$i',new-tab)'
|
$BROWSER -remote 'openURL('"$i"',new-tab)' ||
|
||||||
;;
|
$BROWSER "$i"
|
||||||
x-*)
|
|
||||||
$BROWSER -remote 'openURL('$i',new-tab)'
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
@ -99,8 +94,11 @@ else
|
||||||
if [ -f "$i" ]
|
if [ -f "$i" ]
|
||||||
then
|
then
|
||||||
p=`pwd`
|
p=`pwd`
|
||||||
|
i=`echo $i | sed 's/ /%20/g'`
|
||||||
i=`cleanname -d $p $i`
|
i=`cleanname -d $p $i`
|
||||||
i=file://$i
|
i=file://$i
|
||||||
|
else
|
||||||
|
i=`echo $i | tr -d ' '`
|
||||||
fi
|
fi
|
||||||
plumb1 $i
|
plumb1 $i
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue