aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-09-16 12:18:30 +0000
committerGerrit Code Review <review@openstack.org>2016-09-16 12:18:30 +0000
commit112974b0527aff215d95813f777b554bd95807c7 (patch)
tree320d509445ced5dd9ab8681e70cba087390781d5 /dev
parentf7cd6ef27afdb43e9623280229d52b34a57b6b48 (diff)
parent1b8c4ff7798273cc0f2cc79465773f271e66f3d2 (diff)
downloadkolla-112974b0527aff215d95813f777b554bd95807c7.tar.gz
kolla-112974b0527aff215d95813f777b554bd95807c7.zip
Merge "Update "which" command to "type""
Diffstat (limited to 'dev')
-rw-r--r--dev/vagrant/bootstrap.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/vagrant/bootstrap.sh b/dev/vagrant/bootstrap.sh
index 6ae1727ac..ec89440b8 100644
--- a/dev/vagrant/bootstrap.sh
+++ b/dev/vagrant/bootstrap.sh
@@ -24,13 +24,13 @@ REGISTRY=${REGISTRY_URL}:${REGISTRY_PORT}
ADMIN_PROTOCOL="http"
function _ensure_lsb_release {
- if [[ -x $(which lsb_release 2>/dev/null) ]]; then
+ if [[ -x $(type lsb_release 2>/dev/null) ]]; then
return
fi
- if [[ -x $(which apt-get 2>/dev/null) ]]; then
+ if [[ -x $(type apt-get 2>/dev/null) ]]; then
apt-get -y install lsb-release
- elif [[ -x $(which yum 2>/dev/null) ]]; then
+ elif [[ -x $(type yum 2>/dev/null) ]]; then
yum -y install redhat-lsb-core
fi
}