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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user