Skip to content

Commit e3c3e86

Browse files
fix: --shell for alpine-based commands
1 parent 07af7d3 commit e3c3e86

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
- go
1313
- aws
1414
- python
15+
- rust
16+
- zip
1517
runs-on: ubuntu-latest
1618
steps:
1719
- name: Checkout Dockerized

lib/dockerized.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func main() {
147147

148148
preferredShells := "bash zsh sh"
149149
var cmdPrintWelcome = fmt.Sprintf("echo '%s'", color.YellowString(welcomeMessage))
150-
var cmdLaunchShell = fmt.Sprintf("$(command -v %[1]s | head -n1 || which %[1]s | head -n1)", preferredShells)
150+
var cmdLaunchShell = fmt.Sprintf("$(command -pv %[1]s | head -n1 || which %[1]s | head -n1)", preferredShells)
151151

152152
runOptions.Environment = append(runOptions.Environment, "PS1="+ps1)
153153
runOptions.Entrypoint = []string{"/bin/sh"}

0 commit comments

Comments
 (0)