Skip to content

Commit 53a03b0

Browse files
committed
print user id
1 parent 62e76bd commit 53a03b0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ci/run.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -n "$CI_JOB_NAME" ]; then
88
echo "[CI_JOB_NAME=$CI_JOB_NAME]"
99
fi
1010

11-
echo "whoami: $(whoami). Home: $HOME"
11+
echo "whoami: $(whoami). id: $(id -u) Home: $HOME"
1212
echo "--- current directory ---"
1313
pwd
1414
ls -l
@@ -26,9 +26,8 @@ if [ "$NO_CHANGE_USER" = "" ]; then
2626
chown -R user:user .
2727
mkdir -p /cargo
2828
chown -R user:user /cargo
29-
if [ -f /.dockerenv ]; then
30-
chown -R user:user /checkout
31-
fi
29+
# TODO: don't do this in PR job
30+
chown -R user:user /checkout
3231

3332
# Ensure that runners are able to execute git commands in the worktree,
3433
# overriding the typical git protections. In our docker container we're running

0 commit comments

Comments
 (0)