#!/bin/bash
# http://www.opscode.com/chef/install

if [ "${CHEF_VERSION}" == "none" ]; then
    exit
fi

INSTALL_ARGS=""

if [ "${CHEF_VERSION}" != "latest" ]; then
    INSTALL_ARGS="-v ${CHEF_VERSION}"
fi

curl -LO https://www.opscode.com/chef/install.sh
bash ./install.sh "${INSTALL_ARGS}"
rm install.sh

#!/bin/bash

if [ "${CHEF_VERSION}" == "none" ]; then
    exit
fi

INSTALL_ARGS=""

if [ "${CHEF_VERSION}" != "latest" ]; then
    INSTALL_ARGS="-v ${CHEF_VERSION}"
fi

curl -LO https://www.chef.io/chef/install.sh
bash ./install.sh "${INSTALL_ARGS}"
rm install.sh

Update Chef curl bash URL
Update Chef curl bash URL