#!/usr/bin/env bash
set -e

if [[ $(hostname) != "aria.cielonegro.org" ]]; then
    echo "$0: Run this script only in aria.cielonegro.org" >&2
    exit 1
fi

declare -ar paths=( \
    "/Users/admin/Dropbox/Public/translation" \
    "ssh://www@nem.cielonegro.org/static.cielonegro.org/htdocs/translation" \
    )

set -x
for path in "${paths[@]}"; do
    unison -ui text -batch . "$path"
done
