Skip to content

Commit eaed354

Browse files
committed
entrypoint.sh: source ~/.profile and don't use -l with su
Using -l prevents other variables from being exported to builder, such as VERSION.
1 parent 4c6b1a2 commit eaed354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ chown -R "$HOSTUID:$HOSTGID" /home/builder
2929

3030
# The docs state to use '-w /workdir when running the container, but switching
3131
# to builder here will change the directory. Using cd to change back...
32-
su builder -l -c "cd $OLDPWD && $1"
32+
su builder -c "cd $OLDPWD && . ~/.profile && $1"

0 commit comments

Comments
 (0)