install.sh: interaktive Abfragen bei Installation verbessert
- .env-Verschiebung aus Projektverzeichnis wird angeboten und bei Bestätigung automatisch ausgeführt - Lokales Foto-Verzeichnis wird interaktiv abgefragt (mit Hinweis falls es bereits existiert) - Ausführlicher Hinweis nach Anlegen der Default-.env mit Pflichtfeldern und nächsten Schritten - bats-Hinweis entfernt (nur für Entwickler relevant) - Tests: Umlaut-Mismatch in security.bats behoben, teardown() für Lock-Isolation ergänzt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,6 +23,11 @@ SYNC_BIN=$HOME/.local/bin/darktable_sync.sh
|
||||
EOF
|
||||
}
|
||||
|
||||
# Raeumt nach jedem Test auf (verhindert Lock-Leakage zwischen Tests)
|
||||
teardown() {
|
||||
rm -rf "$CONFIG_DIR/sync.lock"
|
||||
}
|
||||
|
||||
# Fuehrt ein Script mit dem Stubs-Verzeichnis vorne im PATH aus
|
||||
run_with_stubs() {
|
||||
run env PATH="$STUBS_DIR:$PATH" "$@"
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ EOF
|
||||
mkdir -p "$CONFIG_DIR/sync.lock"
|
||||
run_with_stubs env SSH_STUB_FAIL=0 bash "$SYNC_SCRIPT"
|
||||
[ "$status" -eq 1 ]
|
||||
[[ "$output" == *"laeuft bereits"* ]]
|
||||
[[ "$output" == *"läuft bereits"* ]]
|
||||
rmdir "$CONFIG_DIR/sync.lock"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user