Skip to content

Commit

Permalink
fix: expand unless pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Jan 10, 2024
1 parent f60125a commit e09968f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
version = "0.29.0"
version = "0.29.1"
)

type args struct {
Expand Down
3 changes: 2 additions & 1 deletion precheck/unless/unless.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ func shouldSkip(unlessable Unlessable, s settings.Settings) bool {
unlessCmd = unlessable.DefaultVersionCmd()
}

out, err = run.Cmd(s, marecmd.Input{Command: unlessCmd, Pwd: unless.Pwd, Shell: unless.Shell})
pwd := internal.ExpandUser(unless.Pwd)
out, err = run.Cmd(s, marecmd.Input{Command: unlessCmd, Pwd: pwd, Shell: unless.Shell})

if unless.ExitCode != 0 {
internal.Log.Debugf("Command %s exited with code: %d, skip when: %d", unlessCmd, out.Code,
Expand Down

0 comments on commit e09968f

Please sign in to comment.