Skip to content

Commit

Permalink
Use builtin when calling which. Fixes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
dave1010 committed Nov 29, 2023
1 parent 1b7977e commit d16f031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clipea/clipea.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ CLIPEA_SCRIPT_DIR=$(dirname $(readlink -f ${(%):-%x}))

CLIPEA_PYTHON=

CLIPEA_PATH=$(which clipea)
CLIPEA_PATH=$(builtin which clipea)

# Run clipea from the current dir if possible
if [[ -f $CLIPEA_SCRIPT_DIR/__main__.py ]]; then
CLIPEA_PATH=$CLIPEA_SCRIPT_DIR
CLIPEA_PYTHON="$(which python3 || which python)"
CLIPEA_PYTHON="$(builtin which python3 || builtin which python)"
fi

# Execute clipea with an environment variable
Expand Down

0 comments on commit d16f031

Please sign in to comment.