Skip to content

Configurable sh -l (login shell) for command execution #9

@morkeleb

Description

@morkeleb

I wanted to set up a custom script to ensure a specific ruby version and run my ruby tests.
However, when the scripts are run there are no bash variables imported.

So after a while I figure out I could do something similar to this:

bash --login -c "rvm use 1.9.3; bundle exec rspec"

If the strider-custom.json could also contain a shell arguments and shell option that could be used in process I'm free to choose my own shell and thus be able to import variables based on the user running strider. Making it much easier to start using Strider with other languages.

example:

{
  "command": 'bash',
  "args": ['-x', '-c', '--login', command]
  "prepare": "echo executed prepare statement!",
  "test": "echo executed deploy statement!",
  "deploy": "echo deploy && git push heroku master --force"
}

In theory this could also open up for use with other environments such as powershell on Windows.

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