File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5+ echo " Running inside src/ci/run.sh script"
6+
57if [ -n " $CI_JOB_NAME " ]; then
68 echo " [CI_JOB_NAME=$CI_JOB_NAME ]"
79fi
810
911if [ " $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
You can’t perform that action at this time.
0 commit comments