Skip to content

Commit b6f92a8

Browse files
authored
bugfix: use correct script filename (#504)
## Summary I made a mistake merging all the recent small PRs recently and this slipped through. ## How was it tested? `./devbox run a_script`
1 parent 4063fc5 commit b6f92a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/impl/devbox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (d *Devbox) RunScript(cmdName string, cmdArgs []string) error {
270270
cmdWithArgs := append([]string{cmdName}, cmdArgs...)
271271
if _, ok := d.cfg.Shell.Scripts[cmdName]; ok {
272272
// it's a script, so replace the command with the script file's path.
273-
cmdWithArgs = append([]string{d.scriptPath(cmdName)}, cmdArgs...)
273+
cmdWithArgs = append([]string{d.scriptPath(d.scriptFilename(cmdName))}, cmdArgs...)
274274
}
275275

276276
nixShellFilePath := filepath.Join(d.projectDir, ".devbox/gen/shell.nix")

0 commit comments

Comments
 (0)