diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-20 15:24:38 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-20 15:24:38 +0100 |
commit | 90c76f41d353f589f861f9af9cb80b35dffca74d (patch) | |
tree | e7228b981763bbfc9af8a1b2592576328bae85be /etc/functions/newsbeuter | |
parent | 67c12df42e54167d6d5e0ed1218e8e381bfac80e (diff) |
Added newsbeuter wrapper function for synchronization
Diffstat (limited to 'etc/functions/newsbeuter')
-rwxr-xr-x | etc/functions/newsbeuter | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/functions/newsbeuter b/etc/functions/newsbeuter new file mode 100755 index 0000000..53c9c21 --- /dev/null +++ b/etc/functions/newsbeuter @@ -0,0 +1,12 @@ +## vim:ft=zsh +autoload fdie + +function __sync { + if [[ $HOST != aneurysm ]] { + unisync unison derf.homelinux.org .newsbeuter || fdie "sync failed" + } +} + +__sync || return 1 +command newsbeuter $* +__sync |