[New] grss.sh: Generic RSS Wrapper
This commit is contained in:
parent
9a24aee7fa
commit
fb08632381
34
grss.sh
Executable file
34
grss.sh
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
FEED_TITLE="Jitty Scripts"
|
||||||
|
FEED_URL="http://gitbutter.pw/feed/jitty-scripts.git"
|
||||||
|
RSS_READER="rsstail"
|
||||||
|
READER_OPTS="-1 -u"
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
RED='\033[0;31m'
|
||||||
|
LRED="\033[1;31m"
|
||||||
|
BLUE="\033[0;34m"
|
||||||
|
LBLUE="\033[1;34m"
|
||||||
|
GREEN="\033[0;32m"
|
||||||
|
LGREEN="\033[1;32m"
|
||||||
|
YELLOW="\033[1;33m"
|
||||||
|
CYAN="\033[0;36m"
|
||||||
|
LCYAN="\033[1;36m"
|
||||||
|
PURPLE="\033[0;35m"
|
||||||
|
LPURPLE="\033[1;35m"
|
||||||
|
BWHITE="\e[1m"
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
if [ -f /usr/bin/${RSS_READER} ];then
|
||||||
|
printf "${LCYAN}Fetching feed for: ${FEED_TITLE}${NC}\n"
|
||||||
|
if [ "${RSS_READER}" = "rsstail" ];then
|
||||||
|
|
||||||
|
rsstail ${READER_OPTS} ${FEED_URL}
|
||||||
|
else
|
||||||
|
${RSS_READER} ${READER_OPTS}
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
echo "${RSS_READER} is not installed"
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user