From 096ac843c4c802f8022c3ba62cc50642c4c37a0c Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Sat, 2 Oct 2021 19:19:45 +0000 Subject: [PATCH] google-chrome: Fix checking chrom binary --- google-chrome/files/google-chrome-incognito.sh | 2 +- google-chrome/files/google-chrome-socksproxy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-chrome/files/google-chrome-incognito.sh b/google-chrome/files/google-chrome-incognito.sh index 39a71db..1bad5bf 100755 --- a/google-chrome/files/google-chrome-incognito.sh +++ b/google-chrome/files/google-chrome-incognito.sh @@ -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 diff --git a/google-chrome/files/google-chrome-socksproxy.sh b/google-chrome/files/google-chrome-socksproxy.sh index 1609d75..7871490 100755 --- a/google-chrome/files/google-chrome-socksproxy.sh +++ b/google-chrome/files/google-chrome-socksproxy.sh @@ -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