Skip to content

sh.run(): quoted strings before join#306

Merged
natefinch merged 7 commits into
magefile:masterfrom
shouldsee:master
Dec 14, 2021
Merged

sh.run(): quoted strings before join#306
natefinch merged 7 commits into
magefile:masterfrom
shouldsee:master

Conversation

@shouldsee
Copy link
Copy Markdown
Contributor

@shouldsee shouldsee commented May 12, 2020

Unquoted string may contain whitespace,
after Joining those strings, the result cannot be split back to recover the original call.

ret:= sh.RunWith(nil, "go", "build", "-ldflags", "-X /common/hugo.commitHash= -X /common/hugo.buildDate=", "hugo")

see #304

Copy link
Copy Markdown
Member

@natefinch natefinch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after changes

Comment thread sh/cmd.go Outdated
Comment thread sh/cmd.go Outdated
Comment thread sh/cmd.go Outdated
shouldsee and others added 3 commits May 20, 2020 12:48
Co-authored-by: Nate Finch <nate.finch@gmail.com>
Co-authored-by: Nate Finch <nate.finch@gmail.com>
Co-authored-by: Nate Finch <nate.finch@gmail.com>
@shouldsee shouldsee requested a review from natefinch May 25, 2020 02:29
natefinch
natefinch previously approved these changes Aug 12, 2020
Copy link
Copy Markdown
Member

@natefinch natefinch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just tweaking to gofmt standards

Comment thread sh/cmd.go Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants