dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f3ceab55742c4460817c5cfdbea2fc95a0cdb542
parent 2e15df0935eba58cffdc353a4f5efb02b9ef596d
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 13 May 2020 14:57:50 +0200

Add remote feed addition

Diffstat:
M.local/bin/addfeed | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.local/bin/addfeed b/.local/bin/addfeed @@ -1,9 +1,15 @@ #!/bin/sh sfeedrc=/var/sfeed/sfeedrc -if [ $# -lt 2 ]; then +if [ $# -ne 2 ]; then printf 'usage: %s feedname url\n' "${0##*/}" fi + +if [ "$(hostname)" != "adamsgaard" ]; then + ssh adamsgaard.dk ~/.local/bin/addfeed "$@" + exit $? +fi + # use temp file because no write permission in sfeedrc dir temp="$(mktemp)" new="$(printf " feed '%s' '%s'\n" "$1" "$2")"