From 033881e3195388b9f92765a68e5c713953f9086e Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 24 Jan 2016 00:14:05 -0500 Subject: [PATCH] use ${CONFIG} instead of repeating the filename --- tools/build_test_env.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build_test_env.sh b/tools/build_test_env.sh index 6b8e23ce5..26991c2e9 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'