-
Notifications
You must be signed in to change notification settings - Fork 0
/
get-blog-time
executable file
·23 lines (20 loc) · 960 Bytes
/
get-blog-time
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Copyright 2019 Scott Caudle
#
# This file is part of mint-blog-checker-sample.
#
# mint-blog-checker-sample is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# mint-blog-checker-sample is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with mint-blog-checker-sample. If not, see <https://www.gnu.org/licenses/>.
rssremotefile=rss-from-website.xml
wget --quiet -O $rssremotefile http://www.linuxmint.com/planet/rss.xml
xmllint --xpath //lastBuildDate $rssremotefile > time