mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
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:
parent
20a89d31bc
commit
99fcb4dc26
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue