Skip to content

Commit 979394a

Browse files
committed
fix: SC2230
1 parent ec5fd0f commit 979394a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/kitchen/provisioner/formula-fetch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function fetchGitFormula() {
3737

3838
if [[ -n $4 ]]
3939
then
40-
sshbin=$(which ssh)
40+
sshbin=$(command -v ssh)
4141
export GIT_SSH_COMMAND="${sshbin} -o UserKnownHostsFile=/tmp/kitchen/ssh/known_hosts -o StrictHostKeyChecking=no -i ${4}"
4242
export GIT_SSH="/tmp/kitchen/git_ssh.sh"
4343
fi

0 commit comments

Comments
 (0)