Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to pipe string #282

Open
fmnxl opened this issue Aug 11, 2024 · 1 comment
Open

Unable to pipe string #282

fmnxl opened this issue Aug 11, 2024 · 1 comment

Comments

@fmnxl
Copy link

fmnxl commented Aug 11, 2024

I've been trying to use the pipe feature (#154), but I got this error.
From my understanding, the piped string should be available as /dev/stdin?
Sorry if this is unrelated to agenix itself.

> echo "XXXXXXXXXXXXXXXXXXX" | agenix -e my-secret.age
cp: skipping file '/dev/stdin', as it was replaced while being copied
my-secret.age wasn't created.

Edit: it might be relevant that I'm running this on macOS

@fmnxl
Copy link
Author

fmnxl commented Aug 11, 2024

Ok this seems like a darwin/macOS issue.

echo "XXXX" | cp /dev/stdin /dev/stdout

This outputs the original string on linux, while on darwin it errors with the above message

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

No branches or pull requests

1 participant