Skip to content

Commit 9d36708

Browse files
committed
[CI]: Check Darwin from ci-hook
1 parent 794b8b8 commit 9d36708

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.ci/run

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ set -e
77

88
if [ "`id -un`" = "root" ]; then
99
if [ -d ".ci" ]; then
10-
groupadd ci
11-
useradd -g ci ci
10+
if [ "`uname`" = "Darwin" ]; then
11+
if ! [ -f /Users/ci ]; then
12+
echo "Error: User ci not found."
13+
exit 1
14+
fi
15+
else
16+
groupadd ci
17+
useradd -g ci ci
18+
fi
1219
chown -R ci:ci .
1320
su -c ./.ci/build_and_test_world ci
1421
else

0 commit comments

Comments
 (0)