summaryrefslogtreecommitdiff
path: root/tools/build_test_env.sh
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2016-01-23 03:23:05 -0500
committerRichard Hansen <rhansen@rhansen.org>2016-01-31 16:13:56 -0500
commit57f1ad53e202861f2f7c858f970782a2351dcb76 (patch)
tree971e880cc11f712ffe979310b48b1d198a1da19c /tools/build_test_env.sh
parent09ef2538bde7486e3327784c5968c5ee2482394b (diff)
downloadgitlab-57f1ad53e202861f2f7c858f970782a2351dcb76.tar.gz
convert scripts to POSIX shell by eliminating bashisms
Diffstat (limited to 'tools/build_test_env.sh')
-rwxr-xr-xtools/build_test_env.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/build_test_env.sh b/tools/build_test_env.sh
index 9788d57..c824107 100755
--- a/tools/build_test_env.sh
+++ b/tools/build_test_env.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright (C) 2016 Gauvain Pocentek <gauvain@pocentek.net>
#
# This program is free software: you can redistribute it and/or modify
@@ -71,7 +71,7 @@ CONFIG=/tmp/python-gitlab.cfg
GITLAB() { gitlab --config-file "$CONFIG" "$@"; }
GREEN='\033[0;32m'
NC='\033[0m'
-OK() { echo -e "${GREEN}OK${NC}"; }
+OK() { printf "${GREEN}OK${NC}\\n"; }
log "Waiting for gitlab to come online... "
I=0
@@ -81,7 +81,7 @@ while :; do
sleep 4
curl -s http://localhost:8080/users/sign_in 2>/dev/null \
| grep -q "GitLab Community Edition" && break
- let I=I+5
+ I=$((I+5))
[ "$I" -eq 120 ] && exit 1
done
sleep 5