dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

rssup (283B)


      1 #!/bin/sh
      2 
      3 # updates rss feeds with sfeed
      4 
      5 configdir=~/.config/sfeed
      6 
      7 usage()
      8 {
      9 	echo "usage: $(basename $0) feedname [...]"
     10 	exit 1
     11 }
     12 
     13 [ ${#} -lt 1 ] && usage
     14 
     15 for arg; do
     16 	. $configdir/${arg}.sh
     17 	[ -d "$sfeedpath" ] || mkdir -p "$sfeedpath"
     18 	sfeed_update $configdir/${arg}.sh
     19 done