error msg for non-http/s urls

This commit is contained in:
lee2sman 2021-12-31 15:25:41 -05:00
parent 19008f1200
commit a0e6c2c7e1
1 changed files with 7 additions and 1 deletions

View File

@ -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