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