Skip to content

Issue executing a command within a directory #719

Closed
@rahul-sekhar

Description

@rahul-sekhar

While writing a task, this works fine and executes within "/some/path":

within "/some/path" do
    execute "pwd"
end

This does not - it executes within the deploy_to path:

within release_path do
    execute "pwd && ls"
end

In fact, it seems like executing a command with whitespace in it does not work as expected in a within block.

Metadata

Metadata

Assignees

No one assigned

    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