While it seems the $KMVAR_URL variable is functioning fine within this script, it appears that the $KMVAR_DroplrToken variable is causing issues. (I know this because when I delete this variable from the script and replace it with the actual variable value, the script works as expected.)
Any insights on why this might be happening? It's odd that one variable is working in the script and not the other, but perhaps there's something I'm missing. Thanks!
Sometimes the issue is the improper use of smart quotes. But we can't see your actual code, so we can't verify that.
Sometimes the issue is the wrong type of quotes. Try replacing your single quotes with double quotes. Certain quotes prevent variable substitution, but I can't remember which ones right now, so just try double quotes.