Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit867fe2f

Browse files
committed
use the log functions for errors and status messages
This causes the error messages to go to standard error, and it makesit easy to prefix all log messages if desired.
1 parent7c0e443 commit867fe2f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

‎tools/build_test_env.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ PY_VER=2
2929
whilegetopts :p: opt"$@";do
3030
case$optin
3131
p) PY_VER=$OPTARG;;
32-
*)echo"Unknown option:$opt";exit 1;;
32+
*)fatal"Unknown option:$opt";;
3333
esac
3434
done
3535

3636
case$PY_VERin
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)";;
4040
esac
4141

4242
VENV=$(pwd)/.venv
@@ -63,7 +63,7 @@ GREEN='\033[0;32m'
6363
NC='\033[0m'
6464
OK="echo -e${GREEN}OK${NC}"
6565

66-
echo -n"Waiting for gitlab to come online..."
66+
log"Waiting for gitlab to come online..."
6767
I=0
6868
while:;do
6969
sleep 5
@@ -73,7 +73,6 @@ while :; do
7373
[$I-eq 120 ]&&exit 1
7474
done
7575
sleep 5
76-
$OK
7776

7877
# Get the token
7978
TOKEN=$(curl -s http://localhost:8080/api/v3/session \
@@ -92,8 +91,8 @@ url = http://localhost:8080
9291
private_token =$TOKEN
9392
EOF
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp