Skip to content

Commit

Permalink
fix: wrong empty string condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MickaelFontes authored Oct 31, 2024
1 parent 7df1211 commit ce2df44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/setup-chromedriver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CHROMEAPP="${3:-}"
sudo=$(command -v sudo)

if [[ "${ARCH}" =~ ^linux64 ]]; then
if [[ -n "${CHROMEAPP}" ]]; then
if [[ -z "${CHROMEAPP}" ]]; then
CHROMEAPP=google-chrome
fi
APP="${CHROMEAPP}"
Expand All @@ -37,7 +37,7 @@ if [[ "${ARCH}" =~ ^linux64 ]]; then
fi
fi

if [[ "${ARCH}" =~ ^mac64 && -n "${CHROMEAPP}" ]]; then
if [[ "${ARCH}" =~ ^mac64 && -z "${CHROMEAPP}" ]]; then
CHROMEAPP="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
fi

Expand Down

0 comments on commit ce2df44

Please sign in to comment.