Skip to content

Conversation

alexandreh2ag
Copy link

Hi!

As discussed here #138, i purpose this PR to add CWD template variable.

Please let me know if i need to add any changes.

@alexandreh2ag
Copy link
Author

Hello @ncabatoff,
It's possible to give me a review of this PR ? 🙏

Thanks
Alexandre

proc/read.go Outdated
if p.cwd == "" {
cwd, err := p.Cwd()

if err != nil && strings.Contains(err.Error(), "permission denied") {
Copy link
Owner

Choose a reason for hiding this comment

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

Any reason you can't use errors.Is(err, fs.ErrPermission)?

Copy link
Author

Choose a reason for hiding this comment

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

Hello @ncabatoff,

You are right, I modified the code.

Signed-off-by: alexandreh2ag <alexandre.haag90@gmail.com>
@w-HA
Copy link

w-HA commented Oct 7, 2024

hello
Do you have rpm package for this PR ?
Thanks a lot
w-HA

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.

3 participants