File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ PY_VER=2
2929while getopts :p: opt " $@ " ; do
3030 case $opt in
3131 p) PY_VER=$OPTARG ;;
32- * ) echo " Unknown option: $opt " ; exit 1 ;;
32+ * ) fatal " Unknown option: $opt " ;;
3333 esac
3434done
3535
3636case $PY_VER in
3737 2) VENV_CMD=virtualenv;;
3838 3) VENV_CMD=pyvenv;;
39- * ) echo " Wrong python version (2 or 3)" ; exit 1 ;;
39+ * ) fatal " Wrong python version (2 or 3)" ;;
4040esac
4141
4242VENV=$( pwd) /.venv
@@ -63,7 +63,7 @@ GREEN='\033[0;32m'
6363NC=' \033[0m'
6464OK=" echo -e ${GREEN} OK${NC} "
6565
66- echo -n " Waiting for gitlab to come online... "
66+ log " Waiting for gitlab to come online... "
6767I=0
6868while : ; do
6969 sleep 5
@@ -73,7 +73,6 @@ while :; do
7373 [ $I -eq 120 ] && exit 1
7474done
7575sleep 5
76- $OK
7776
7877# Get the token
7978TOKEN=$( curl -s http://localhost:8080/api/v3/session \
@@ -92,8 +91,8 @@ url = http://localhost:8080
9291private_token = $TOKEN
9392EOF
9493
95- echo " Config file content ($CONFIG ):"
96- cat $CONFIG
94+ log " Config file content ($CONFIG ):"
95+ log < $CONFIG
9796
9897$VENV_CMD $VENV
9998. $VENV /bin/activate
You can’t perform that action at this time.
0 commit comments