Skip to content

Commit

Permalink
use ${CONFIG} instead of repeating the filename
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Jan 31, 2016
1 parent bc7332f commit 033881e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/build_test_env.sh
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 033881e

Please sign in to comment.