8000 use ${CONFIG} instead of repeating the filename · andreascian/python-gitlab@033881e · GitHub
[go: up one dir, main page]

Skip to content

Commit 033881e

Browse files
committed
use ${CONFIG} instead of repeating the filename
1 parent bc7332f commit 033881e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/build_test_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ do
5151
done
5252

5353
VENV=$(pwd)/.venv || exit 1
54+
CONFIG=/tmp/python-gitlab.cfg
5455

5556
cleanup() {
56-
rm -f /tmp/python-gitlab.cfg
57+
rm -f "${CONFIG}"
5758
docker kill gitlab-test >/dev/null 2>&1
5859
docker rm gitlab-test >/dev/null 2>&1
5960
command -v deactivate >/dev/null 2>&1 && deactivate || true
@@ -69,7 +70,6 @@ try docker run --name gitlab-test --detach --publish 8080:80 \
6970

7071
LOGIN='root'
7172
PASSWORD='5iveL!fe'
72-
CONFIG=/tmp/python-gitlab.cfg
7373
GITLAB() { gitlab --config-file "$CONFIG" "$@"; }
7474
GREEN='\033[0;32m'
7575
NC='\033[0m'

0 commit comments

Comments
 (0)
0