diff options
author | Richard Hansen <rhansen@rhansen.org> | 2016-01-24 00:14:05 -0500 |
---|---|---|
committer | Richard Hansen <rhansen@rhansen.org> | 2016-01-31 16:25:37 -0500 |
commit | 033881e3195388b9f92765a68e5c713953f9086e (patch) | |
tree | 49209edc33f44e8eed6cb84f5b0dd48091668f57 /tools | |
parent | bc7332f3462295320bf76e056a5ab6206ffa4d6b (diff) | |
download | gitlab-033881e3195388b9f92765a68e5c713953f9086e.tar.gz |
use ${CONFIG} instead of repeating the filename
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build_test_env.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/build_test_env.sh b/tools/build_test_env.sh index 6b8e23c..26991c2 100755 --- a/tools/build_test_env.sh +++ b/tools/build_test_env.sh @@ -51,9 +51,10 @@ do done VENV=$(pwd)/.venv || exit 1 +CONFIG=/tmp/python-gitlab.cfg cleanup() { - rm -f /tmp/python-gitlab.cfg + rm -f "${CONFIG}" docker kill gitlab-test >/dev/null 2>&1 docker rm gitlab-test >/dev/null 2>&1 command -v deactivate >/dev/null 2>&1 && deactivate || true @@ -69,7 +70,6 @@ try docker run --name gitlab-test --detach --publish 8080:80 \ LOGIN='root' PASSWORD='5iveL!fe' -CONFIG=/tmp/python-gitlab.cfg GITLAB() { gitlab --config-file "$CONFIG" "$@"; } GREEN='\033[0;32m' NC='\033[0m' |