google-chrome: Fix checking chrom binary
This commit is contained in:
parent
9e432fecda
commit
096ac843c4
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ set -eu
|
|||
URL="${2-}"
|
||||
|
||||
CHROME="$(which google-chrome 2>/dev/null)"
|
||||
if [ -n "$CHROME" ]; then
|
||||
if [ -z "$CHROME" ]; then
|
||||
if [ -f "/Applications/Google Chrome.app" ]; then
|
||||
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ SOCKSPORT="$1"
|
|||
URL="${2-}"
|
||||
|
||||
CHROME="$(which google-chrome 2>/dev/null)"
|
||||
if [ -n "$CHROME" ]; then
|
||||
if [ -z "$CHROME" ]; then
|
||||
if [ -f "/Applications/Google Chrome.app" ]; then
|
||||
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue