Permalink
Browse files

Tweak tpope-config pull over HTTP

  • Loading branch information...
1 parent d38a428 commit 4aad16983835541c8f04c2709be3c0208b5a641e @tpope committed Oct 21, 2012
Showing with 7 additions and 8 deletions.
  1. +7 −8 bin/tpope-config
View
@@ -48,21 +48,20 @@ case "$command" in
pull) # hosts
if [ "$#" = 0 ]; then
+ url=http://$default_host/tgz
if [ -x "`which curl 2>/dev/null`" ]; then
- webcat="curl -m8 -L -s -S"
+ curl -m8 -L -s -S $url
elif [ -x "`which wget 2>/dev/null`" ]; then
- webcat="wget -t1 -T8 -nv -O -"
+ wget -t1 -T8 -qO - $url
elif [ -x "`which lynx 2>/dev/null`" ]; then
- webcat="lynx -source"
+ lynx -source $url
else
- webcat="ssh $default_host curl -m8 -s -S"
- fi
- $webcat http://c.tpo.pe/tgz | tar xzf - -C "$HOME"
- exec tpope config prune
+ ssh $default_host bin/tpope tar czf -
+ fi | tar xzf - -C "$HOME"
fi
for host in "$@"; do
- $RSYNC_RSH "$host" '$HOME/bin/tpope' config tar cf - | tar xf - -C "$HOME"
+ $RSYNC_RSH "$host" bin/tpope config tar cf - | tar xf - -C "$HOME"
done
exec tpope config prune
;;

0 comments on commit 4aad169

Please sign in to comment.