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