13
Seeking help with a curl command in a bash script - SOLVED
(lemmy.thewooskeys.com)
Linux questions Rules (in addition of the Lemmy.zip rules)
Tips for giving and receiving help
Any rule violations will result in disciplinary actions
Thanks for the suggestions.
The script is pulling the values of USERNAME and PASSWORD from a .env. I added debug
echo $USERNAME $PASSWORDin the script and it shows the correct values, so the script is pulling the values correctly and storing them in the vars correctly. I also added that echo to the subshell command, like:...and the result was the correct USERNAME.
The script does begin with
#!/bin/bash.echo $PATH; which curlproduces identical results when run from the shell and the script.