diff options
author | June McEnroe <june@causal.agency> | 2021-02-17 17:46:31 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-02-17 17:46:31 -0500 |
commit | 24ffe2b5f4f0aa39b72ef8cde641e7de4399b26d (patch) | |
tree | ea6bb906aa282fb401f5a31bb0edd7b7e9a1f811 /bin | |
parent | Add tildenews support to sup (diff) | |
download | src-24ffe2b5f4f0aa39b72ef8cde641e7de4399b26d.tar.gz src-24ffe2b5f4f0aa39b72ef8cde641e7de4399b26d.zip |
Use curl --url for URL from email
Be explicit it's the URL and not some injected curl flag or something.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sup.sh b/bin/sup.sh index ce9cdb9d..308fd706 100644 --- a/bin/sup.sh +++ b/bin/sup.sh @@ -25,7 +25,7 @@ discogs() { sed -n 's/^To proceed, follow the instructions here: \(.*\)/\1/p' ) echo 'Fetching token...' - token=$(curl -ISs "${url}" | sed -n 's/.*[?]token=\([^&]*\).*/\1/p') + token=$(curl -ISs --url "${url}" | sed -n 's/.*[?]token=\([^&]*\).*/\1/p') password=$(generate) echo 'Setting password...' curl -Ss -X POST \ |