openva/rs-video-processor

Variables are being set as shell variables, not environment variables

Closed this issue · 3 comments

As a result, they don't exist within child processes, which is to say that they are useless. Fix this.

The solution is to export all of them.

These are all working fine, except for filename:

filename=$'"../video/20180111.mp4"\ndate="20180111"\ndate_hyphens="2018-01-11"\ns3_url="https://s3.amazon.com/house/floor/20180111.mp4"\nchamber="house"'

I'm not sure what's going on here.

Huh. So, yeah, adding export to the start of this is the source of the problem:

export eval "$(jq -r '. | to_entries | .[] | .key + "=\"" + .value + "\""' < metadata.json)"

Without that, they work fine as shell variables.