Skip to content

[desktop-lite] Process replacement in entrypoint fails #1615

@boyoncho

Description

@boyoncho

/usr/local/share/desktop-init.sh always fails in the process replacement section because the following command is not being passed through.

vscode ➜ /workspaces/desktop-lite-issue (master) $ tail -n 8 /usr/local/share/desktop-init.sh
# Run whatever was passed in
if [ -n "" ]; then
    log "Executing \"$@\"."
    exec ""
else
    log "No command provided to execute."
fi
log "** SCRIPT EXIT **"

I believe it should be:

if [ -n "$1" ]; then
    log "Executing \"$@\"."
    exec "$@"

From the history, this issue seems to have existed for quite a long time.

Is it currently working as intended?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions