anki/qt/ftl/scripts/upload-latest-templates
2020-04-01 18:20:31 +10:00

12 lines
234 B
Bash
Executable File

#!/bin/bash
#
# expects to be run from the ftl folder
#
set -eu -o pipefail ${SHELLFLAGS}
test -d repo || exit 1
rsync -av --delete *.ftl repo/desktop/templates/
(cd repo && git add desktop; git commit -m update || true; git push)