From 9819720f78f30e4de19ec577ae186816c386f25e Mon Sep 17 00:00:00 2001 From: melissaml Date: Wed, 20 Sep 2017 02:57:57 +0800 Subject: [PATCH] Fix to use "." to source script files Adhering to coding conventions. Refer to ``Code conventions`` at https://docs.openstack.org/contributor-guide/ for details. Change-Id: I54b2d7d84bdd651fb96a62b3af3244c6ab484059 --- doc/source/user/howto.rst | 2 +- scripts/env-setup.sh | 2 +- scripts/install-deps.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/user/howto.rst b/doc/source/user/howto.rst index 233750dde..b8e6f851c 100644 --- a/doc/source/user/howto.rst +++ b/doc/source/user/howto.rst @@ -15,7 +15,7 @@ environment variables: For your ease of use, ``env-vars`` can be sourced to allow the CLI to connect to a local ironic installation operating in noauth mode. Run e.g.:: - source env-vars + . env-vars ironic node-list +------+------+---------------+-------------+--------------------+-------------+ | UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance | diff --git a/scripts/env-setup.sh b/scripts/env-setup.sh index ba96931ba..3afbd8e86 100755 --- a/scripts/env-setup.sh +++ b/scripts/env-setup.sh @@ -1,7 +1,7 @@ #!/bin/bash set -eu -source $(dirname $0)/install-deps.sh +. $(dirname $0)/install-deps.sh # NOTE(pas-ha) the above exports some useful variables like # $PYTHON , $PIP and $VENV depending on venv install or not diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index d0ff265cf..3de7a8e7a 100644 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -129,7 +129,7 @@ if [ -n "${VENV-}" ]; then # Note(cinerama): activate is not compatible with "set -u"; # disable it just for this line. set +u - source ${VENV}/bin/activate + . ${VENV}/bin/activate set -u VIRTUAL_ENV=${VENV} else