Skip to content

Commit fc312ff

Browse files
authored
Allow usual shell calls through DARGS
1 parent da95bb6 commit fc312ff

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,9 @@ echo ""
8282
if [ "$EXECAPP" != "$_SHELL" ]; then
8383
su -l $USERNAME -c "cd $WORKDIR && $EXECAPP $DARGS"
8484
else
85-
cd $WORKDIR && su $USERNAME
85+
if [ -z "$DARGS" ]; then
86+
cd $WORKDIR && su $USERNAME
87+
else
88+
su -l $USERNAME -c "cd $WORKDIR && $DARGS"
89+
fi
8690
fi

0 commit comments

Comments
 (0)