act/pkg/runner/testdata/shells
Ryan adabf2a202
fix: rework setupShellCommand (#930)
* fix: rework `setupShellCommand`

* move all logic to separate function so we can test that later
* split `step.Shell` and `step.WorkingDirectory` setup into own funcs
* general cleanup of function
* use `ActPath` to not collide with checked out repository
* use `shellquote.Split()` instead of `strings.Fields()` for better command split
* replace single string concat with `fmt`

Signed-off-by: hackercat <me@hackerc.at>

* lint(editorconfig): ignore *_test.go due to mixed style

Signed-off-by: hackercat <me@hackerc.at>
2021-12-22 06:37:16 +00:00
..
bash fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00
custom fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00
defaults fix: set sh as default shell for containers (#853) 2021-11-03 11:47:47 -07:00
pwsh fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00
python fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00
sh fix: rework setupShellCommand (#930) 2021-12-22 06:37:16 +00:00