~sircmpwn/dotfiles

dbab39e7d0729a136a4861bdf68da3e35a8c8ca1 — Drew DeVault 4 months ago 99399d3
bin/srht: update for legacy.sr.ht shim
1 files changed, 1 insertions(+), 1 deletions(-)

M bin/srht
M bin/srht => bin/srht +1 -1
@@ 76,7 76,7 @@ desktop() {

# This function uploads the $file
upload() {
	url="$(curl --silent -H Authorization:"token $key" -F file="@$uploadme" "https://legacy.sr.ht/api/upload" | grep -o -i "https://legacy.sr.ht/*.[a-z0-9._-]*")"
	url="$(curl --silent -H Authorization:"token $key" -F file="@$uploadme" "https://l.sr.ht/api/upload" | grep -o -i "https://l.sr.ht/*.[a-z0-9._-]*")"
}

# This function logs the url,  copies the url to the clipboard, and/or opens the url in your browser