readwwwlog: Use id variable everywhere
This commit is contained in:
parent
a2f2c4c6bc
commit
239e4d293c
|
@ -21,7 +21,8 @@ for url in ${urls}; do
|
|||
if [[ ${url} =~ 'dpaste\.com' && ! ${url[-4,-1]} == ".txt" ]]; then
|
||||
url+=".txt"
|
||||
elif [[ ${url} =~ 'pastebin\.com' && ! ${url} =~ '/raw/' ]]; then
|
||||
url="https://pastebin.com/raw/${url##*/}"
|
||||
local id=${url##*/}
|
||||
url="https://pastebin.com/raw/${id}"
|
||||
elif [[ ${url} =~ 'irccloud\.com' && ! ${url} =~ '/raw/' ]]; then
|
||||
local id=${${(@s:/:)url}[4]}
|
||||
url="https://www.irccloud.com/pastebin/raw/${id}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user