Refaktorierung: Common-Library mit generischen Funktionen

- Neue `darktable_common.sh` mit wiederverwendbaren Shell-Funktionen (Locking, Logging, Validierung)
- `darktable_sync.sh` nutzt jetzt Common-Library statt eingebettete Logik
- `darktable_wrapper.sh` vereinfacht durch Nutzung von Common-Funktionen
- Eliminiert Code-Duplikation zwischen Sync und Wrapper
- Verbessert Wartbarkeit und Testbarkeit

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-19 20:35:56 +02:00
parent 0cd9679767
commit 6fd8a8c308
3 changed files with 114 additions and 31 deletions
+9 -1
View File
@@ -77,7 +77,15 @@ check_dependency() {
}
log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*"
echo "$*"
}
log_step() {
echo "=== $* ==="
}
log_error() {
echo "FEHLER: $*" >&2
}
ssh_server() {