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:
parent
6746550139
commit
e9e2a3769c
@ -16,7 +16,7 @@
|
||||
if is_service_enabled freezer-web-ui; then
|
||||
if [[ "$1" == "source" || "`type -t install_freezer_web_ui`" != 'function' ]]; then
|
||||
# Initial source
|
||||
source $FREEZER_WEB_UI_DIR/devstack/lib/freezer-web-ui
|
||||
. $FREEZER_WEB_UI_DIR/devstack/lib/freezer-web-ui
|
||||
fi
|
||||
|
||||
if [[ "$1" == "stack" && "$2" == "install" ]]; then
|
||||
|
@ -4,4 +4,4 @@ VENV_PATH=${VENV_PATH:-${TOOLS_PATH}}
|
||||
VENV_DIR=${VENV_NAME:-/../.venv}
|
||||
TOOLS=${TOOLS_PATH}
|
||||
VENV=${VENV:-${VENV_PATH}/${VENV_DIR}}
|
||||
source ${VENV}/bin/activate && "$@"
|
||||
. ${VENV}/bin/activate && "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user