6074f101ff
- Zentralisiere alle rsync-Aufrufe in darktable_common.sh mit perform_rsync() - Trockenlauf-Flag-Handling in Gemeinsam-Funktionen - perform_rsync() gibt Zeilenanzahl zurück für Trockenlauf-Zählwerte - darktable_sync.sh nutzt nur noch perform_rsync(), reduziert Duplikation - Testabdeckung für perform_rsync() + rsync-Fehlerbehandlung erweitert - CLAUDE.md mit unison-Migration-Absicht dokumentiert Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
445 B
Bash
Executable File
16 lines
445 B
Bash
Executable File
#!/bin/bash
|
|
# SSH_STUB_FAIL=1 → schlägt fehl
|
|
# SSH_STUB_OUTPUT → Ausgabe für allgemeine Befehle
|
|
# UNISON_SERVER_VERSION → Ausgabe für 'unison -version' (Standard: passt zur lokalen Version)
|
|
|
|
if [ "${SSH_STUB_FAIL:-0}" = "1" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
if echo "$*" | grep -q 'unison -version'; then
|
|
echo "${UNISON_SERVER_VERSION:-unison version 2.53.3}"
|
|
else
|
|
echo "${SSH_STUB_OUTPUT:-}"
|
|
fi
|
|
exit 0
|