jitty-scripts/grss.sh

35 lines
667 B
Bash
Raw Normal View History

2016-07-06 14:27:19 -07:00
#!/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