summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-17 17:46:31 -0500
committerJune McEnroe <june@causal.agency>2021-02-17 17:46:31 -0500
commit24ffe2b5f4f0aa39b72ef8cde641e7de4399b26d (patch)
treeea6bb906aa282fb401f5a31bb0edd7b7e9a1f811 /bin
parentAdd tildenews support to sup (diff)
downloadsrc-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.sh2
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 \