Skip to content

Commit 8f92115

Browse files
committed
add debug info
1 parent b1e8433 commit 8f92115

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ci/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
set -e
44

5+
echo "Running inside src/ci/run.sh script"
6+
57
if [ -n "$CI_JOB_NAME" ]; then
68
echo "[CI_JOB_NAME=$CI_JOB_NAME]"
79
fi
810

911
if [ "$NO_CHANGE_USER" = "" ]; then
1012
if [ "$LOCAL_USER_ID" != "" ]; then
13+
echo "Starting with UID: $LOCAL_USER_ID"
1114
id -u user &>/dev/null || useradd --shell /bin/bash -u $LOCAL_USER_ID -o -c "" -m user
1215
export HOME=/home/user
1316
unset LOCAL_USER_ID
@@ -21,6 +24,7 @@ if [ "$NO_CHANGE_USER" = "" ]; then
2124
# For NO_CHANGE_USER done in the small number of Dockerfiles affected.
2225
echo -e '[safe]\n\tdirectory = *' > /home/user/.gitconfig
2326

27+
echo "Switching to user"
2428
exec su --preserve-environment -c "env PATH=$PATH \"$0\"" user
2529
echo "whoami: $(whoami)"
2630
fi

0 commit comments

Comments
 (0)