diff options
| author | Richard Hansen <rhansen@rhansen.org> | 2016-01-23 03:23:05 -0500 |
|---|---|---|
| committer | Richard Hansen <rhansen@rhansen.org> | 2016-01-31 16:13:56 -0500 |
| commit | 57f1ad53e202861f2f7c858f970782a2351dcb76 (patch) | |
| tree | 971e880cc11f712ffe979310b48b1d198a1da19c /tools/build_test_env.sh | |
| parent | 09ef2538bde7486e3327784c5968c5ee2482394b (diff) | |
| download | gitlab-57f1ad53e202861f2f7c858f970782a2351dcb76.tar.gz | |
convert scripts to POSIX shell by eliminating bashisms
Diffstat (limited to 'tools/build_test_env.sh')
| -rwxr-xr-x | tools/build_test_env.sh | 6 |
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 |
