From 53c049c055e6a09d8988e2229e18ff5b68586b72 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Wed, 17 Jul 2024 18:44:40 -0500 Subject: [PATCH] =?UTF-8?q?Aldonas=20al=C5=9Dutan=20skripton?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alŝuti.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 alŝuti.sh diff --git a/alŝuti.sh b/alŝuti.sh new file mode 100644 index 0000000..44fa1c5 --- /dev/null +++ b/alŝuti.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +RSYNC_DRYRUN="--dry-run" +if test "$1" = "--real"; then + RSYNC_DRYRUN="" +fi + +rsync $RSYNC_DRYRUN --verbose --recursive static/ $(whoami)@xwx.moe:/opt/weblate/data/cache/static/ +rsync $RSYNC_DRYRUN --verbose --recursive --archive --delete x_x/ $(whoami)@xwx.moe:/opt/weblate/data/cache/static/x_x/ +rsync $RSYNC_DRYRUN --verbose --recursive --archive templates/ $(whoami)@xwx.moe:/opt/weblate/env/lib/python3.12/site-packages/weblate/templates/ + +if test "$RSYNC_DRYRUN" = "--dry-run"; then + echo "==================================================" + echo "Ran in --dry-run mode!" + echo "Try '$(basename "$0") --real' if the output seems OK." + echo "==================================================" +fi