Skip to content

Commit 03b1742

Browse files
chore: listen to feedback
1 parent 6978717 commit 03b1742

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/code-server/install.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ cat > /usr/local/bin/code-server-entrypoint <<EOF
8080
set -e
8181
8282
if [[ \$(whoami) != "$_REMOTE_USER" ]]; then
83-
su $_REMOTE_USER -c /usr/local/bin/code-server-entrypoint
84-
else
85-
$(declare -p FLAGS)
86-
87-
code-server "\${FLAGS[@]}" "$CODE_SERVER_WORKSPACE" >"$LOGFILE" 2>&1
83+
exec su $_REMOTE_USER -c /usr/local/bin/code-server-entrypoint
8884
fi
85+
86+
$(declare -p FLAGS)
87+
88+
code-server "\${FLAGS[@]}" "$CODE_SERVER_WORKSPACE" >"$LOGFILE" 2>&1
8989
EOF
9090

9191
chmod +x /usr/local/bin/code-server-entrypoint

0 commit comments

Comments
 (0)