use . instead of source.
Code conventions: Use “.” to source script files When you have to source a script file, for example , a credentials file to gain access to user-only or admin-only CLI commands, use . instead of source. See more: http://docs.openstack.org/contributor-guide/writing-style/code-conventions Change-Id: If2ef1f3f56008f7e9e1bec13b94d542a3b9667e7
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
if is_service_enabled freezer-web-ui; then
|
if is_service_enabled freezer-web-ui; then
|
||||||
if [[ "$1" == "source" || "`type -t install_freezer_web_ui`" != 'function' ]]; then
|
if [[ "$1" == "source" || "`type -t install_freezer_web_ui`" != 'function' ]]; then
|
||||||
# Initial source
|
# Initial source
|
||||||
source $FREEZER_WEB_UI_DIR/devstack/lib/freezer-web-ui
|
. $FREEZER_WEB_UI_DIR/devstack/lib/freezer-web-ui
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ VENV_PATH=${VENV_PATH:-${TOOLS_PATH}}
|
|||||||
VENV_DIR=${VENV_NAME:-/../.venv}
|
VENV_DIR=${VENV_NAME:-/../.venv}
|
||||||
TOOLS=${TOOLS_PATH}
|
TOOLS=${TOOLS_PATH}
|
||||||
VENV=${VENV:-${VENV_PATH}/${VENV_DIR}}
|
VENV=${VENV:-${VENV_PATH}/${VENV_DIR}}
|
||||||
source ${VENV}/bin/activate && "$@"
|
. ${VENV}/bin/activate && "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user