Use "command -v" instead of "which" command

``which`` is non-standard.

Fixes the following shellcheck error:

- SC2230: which is non-standard. Use builtin 'command -v' instead.
This commit is contained in:
rallytime 2018-07-09 11:20:32 -04:00
parent 20a89d31bc
commit 99fcb4dc26
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -5095,7 +5095,7 @@ install_freebsd_11_stable() {
install_freebsd_git() {
# /usr/local/bin/python2 in FreeBSD is a symlink to /usr/local/bin/python2.7
__PYTHON_PATH=$(readlink -f "$(which python2)")
__PYTHON_PATH=$(readlink -f "$(command -v python2)")
__ESCAPED_PYTHON_PATH=$(echo "${__PYTHON_PATH}" | sed 's/\//\\\//g')
# Install from git