Skip to content

Commit 528e672

Browse files
committed
Update .ci/run
1 parent c981ff6 commit 528e672

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.ci/run

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,16 @@
55

66
set -e
77

8-
./.ci/build_and_test_world
8+
if [ "`id`" = "root" ]; then
9+
if [ -d ".ci" ]; then
10+
groupadd ci
11+
useradd -g ci ci
12+
chown -R ci:ci .
13+
su -c ./.ci/build_and_test_world ci
14+
else
15+
echo "Error: .ci not found"
16+
exit 1
17+
fi
18+
else
19+
./.ci/build_and_test_world
20+
fi

0 commit comments

Comments
 (0)