google-chrome: Fix checking chrom binary

This commit is contained in:
Timo Makinen 2021-10-02 19:19:45 +00:00
parent 9e432fecda
commit 096ac843c4
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ set -eu
URL="${2-}" URL="${2-}"
CHROME="$(which google-chrome 2>/dev/null)" CHROME="$(which google-chrome 2>/dev/null)"
if [ -n "$CHROME" ]; then if [ -z "$CHROME" ]; then
if [ -f "/Applications/Google Chrome.app" ]; then if [ -f "/Applications/Google Chrome.app" ]; then
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
else else

View file

@ -11,7 +11,7 @@ SOCKSPORT="$1"
URL="${2-}" URL="${2-}"
CHROME="$(which google-chrome 2>/dev/null)" CHROME="$(which google-chrome 2>/dev/null)"
if [ -n "$CHROME" ]; then if [ -z "$CHROME" ]; then
if [ -f "/Applications/Google Chrome.app" ]; then if [ -f "/Applications/Google Chrome.app" ]; then
CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
else else