add screenshot
This commit is contained in:
parent
b360eb2018
commit
82136e3719
|
@ -1,5 +1,7 @@
|
||||||
# Get Last RSS Post
|
# Get Last RSS Post
|
||||||
|
|
||||||
|
![Screenshot](screenshot.jpg)
|
||||||
|
|
||||||
Simple script to get the latest post link from a RSS feed (usually, the second occurence of the `<title>` tag).
|
Simple script to get the latest post link from a RSS feed (usually, the second occurence of the `<title>` tag).
|
||||||
|
|
||||||
It provides a quick way to copy/paste the title and URL for social media.
|
It provides a quick way to copy/paste the title and URL for social media.
|
||||||
|
|
|
@ -44,8 +44,8 @@ wget -q -O feed.xml $1
|
||||||
if ! [[ $? == "0" ]]; then echo "Error."; cleanup 1; else echo "Done."; fi
|
if ! [[ $? == "0" ]]; then echo "Error."; cleanup 1; else echo "Done."; fi
|
||||||
|
|
||||||
# Check if downloaded file has <rss> tag
|
# Check if downloaded file has <rss> tag
|
||||||
grep '<rss' feed.xml
|
grep -q '<rss' feed.xml
|
||||||
if ! [[ $? == "0" ]]; then echo "This is not a RSS feed. Exiting."; cleanup 1; else echo "Done."; fi
|
if ! [[ $? == "0" ]]; then echo "This is not a RSS feed. Exiting."; cleanup 1; fi
|
||||||
|
|
||||||
|
|
||||||
# Find 2nd clean title (1st post) and replaces / with \/
|
# Find 2nd clean title (1st post) and replaces / with \/
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
Reference in New Issue