Properly detect the git binary in SmartOS.

Fixes #611
This commit is contained in:
Pedro Algarvio 2015-07-17 11:32:03 +01:00
parent 453185f017
commit 40cb0cd03a

View file

@ -4213,7 +4213,8 @@ install_smartos_deps() {
install_smartos_git_deps() {
install_smartos_deps || return 1
if [ "$(which git)" = "" ]; then
which git > /dev/null 2>&1
if [ $? -eq 1 ]; then
pkgin -y install git || return 1
fi