error msg for non-http/s urls
This commit is contained in:
parent
19008f1200
commit
a0e6c2c7e1
|
@ -84,7 +84,13 @@ function process_article
|
|||
switch $format
|
||||
case html
|
||||
#just a placeholder
|
||||
echo "Html saved to " $output
|
||||
|
||||
if test (string match 'http*' $url )
|
||||
echo "Html saved to " $output
|
||||
else
|
||||
echo "Error. Html requires URLs beginning http/https:"
|
||||
end
|
||||
|
||||
case reader
|
||||
pandoc -s $output/$title.html -c $theme -o $output/$title-article.html
|
||||
rm -f $output/$title.html
|
||||
|
|
Loading…
Reference in New Issue