databricks-cli/libs/exec
Pieter Noordhuis 94112eaedb
Make libs/exec fallback to `sh` if `bash` cannot be found (#1114)
## Changes

Falling back to `sh` is also what GitHub Actions do if `bash` is not
found in the path. It is possible `bash` is not available when running
from minimal Docker containers and we must not error out in this case.

See:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell.

This change renames `interpreter` -> `shell`.

## Tests

Unit tests pass.
2024-01-11 12:26:31 +00:00
..
exec.go Make libs/exec fallback to `sh` if `bash` cannot be found (#1114) 2024-01-11 12:26:31 +00:00
exec_test.go Make libs/exec fallback to `sh` if `bash` cannot be found (#1114) 2024-01-11 12:26:31 +00:00
shell.go Make libs/exec fallback to `sh` if `bash` cannot be found (#1114) 2024-01-11 12:26:31 +00:00
shell_bash.go Make libs/exec fallback to `sh` if `bash` cannot be found (#1114) 2024-01-11 12:26:31 +00:00
shell_bash_test.go Make libs/exec fallback to `sh` if `bash` cannot be found (#1114) 2024-01-11 12:26:31 +00:00
shell_cmd.go Make libs/exec fallback to `sh` if `bash` cannot be found (#1114) 2024-01-11 12:26:31 +00:00
shell_cmd_test.go Make libs/exec fallback to `sh` if `bash` cannot be found (#1114) 2024-01-11 12:26:31 +00:00
shell_sh.go Make libs/exec fallback to `sh` if `bash` cannot be found (#1114) 2024-01-11 12:26:31 +00:00
shell_sh_test.go Make libs/exec fallback to `sh` if `bash` cannot be found (#1114) 2024-01-11 12:26:31 +00:00