accessing environment variables from shebang recipes #1989
-
I have a shebang recipe that looks like this:
where berglas is a tool that decodes env vars with specific urls. Output from this is:
which is what I expect. However, I need to use the AUTH_USER and AUTH_PASSWORD in a call to curl. This is what I am trying:
and what I get is:
How do I tell just to let the shell do the substitution for that env var reference? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Another example:
errors with
|
Beta Was this translation helpful? Give feedback.
-
If this is all one recipe, you could do something like
This is just the basic idea. That |
Beta Was this translation helpful? Give feedback.
If this is all one recipe, you could do something like
This is just the basic idea. That
export
line might be unsound if any of theAUTH_*
variables could contain characters that are special to the shell, but there are other ways to extract the values from that command output for passing toexport
.