#!/bin/env bash

if [[ $(hostname) != "ladd76" ]]; then
  echo >&2 "host $(hostname) != 'ladd76'"
  exit 1
fi

rsync -ru --exclude='.git' --exclude='node_modules' ~/code/gravity-dev/ lentilz:code/gravity-dev/
rsync -ru --exclude='.git' --exclude='node_modules' lentilz:code/gravity-dev/ ~/code/gravity-dev/ 

echo >&2
echo >&2 "Synced with https://laddhoffman.com/gravity-dev/"
