Save uncommitted changes
Build / Lint & Test (push) Successful in 14s

This commit is contained in:
PickleRick committed 2026-09-21 12:38:13 +02:00
1 parent 5d43ba6a26
commit 880ec5bc6d
3 files changed
+28

No files matched your search

+16
View File
@@ -86,6 +86,18 @@ download_plugin() {
done
}
download_progress_helper() {
local dest="${PLUGIN_DIR}/FlowHelpers/1.0.0"
local url="${RAW}/FlowHelpers/1.0.0/copyWithProgress.js"
mkdir -p "$dest"
if curl -fsSL "$url" -o "${dest}/copyWithProgress.js"; then
echo " ✓ copyWithProgress helper → ${dest}/copyWithProgress.js"
else
echo " ✗ Failed to download copyWithProgress helper from ${url}"
return 1
fi
}
# ── Run ───────────────────────────────────────────────────────────────────────
echo "=== Tdarr Plugin Updater ==="
echo " Source : ${GITEA_URL}/${GITEA_REPO} (branch: ${BRANCH})"
@@ -97,6 +109,10 @@ for plugin in "${TARGETS[@]}"; do
download_plugin "$plugin" || ERRORS=$((ERRORS + 1))
done
if [[ $# -eq 0 || " ${TARGETS[*]} " == *" copyToWorkDir "* || " ${TARGETS[*]} " == *" replaceOriginalFile "* ]]; then
download_progress_helper || ERRORS=$((ERRORS + 1))
fi
echo ""
if [[ $ERRORS -eq 0 ]]; then
echo "✅ Done. Restart Tdarr server to pick up changes:"