mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-11-16 00:15:33 +00:00
ci: use the container-structure-test image instead of a pinned download
The pinned release URL returned 404. test/run.sh already falls back to the official tool image when the binary is absent, so CI and local runs now take the same path. Also pin *.txt to LF and make the required-features lookup tolerate CRLF, so the feature gate works on a Windows checkout too. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Agent-Id: agent-7034f75b-1ddc-4aa1-a4ea-3a54b340e8d9
This commit is contained in:
1 parent
10b197f1f5
commit
9f1c80951d
3 files changed
+5
-7
No files matched your search
+2
-1
@@ -190,7 +190,8 @@ REQUIRED_FEATURES_FILE="${REQUIRED_FEATURES_FILE:-$(dirname "${BASH_SOURCE[0]}")
|
||||
feature_is_required() {
|
||||
local feature="$1"
|
||||
[ -f "$REQUIRED_FEATURES_FILE" ] || return 1
|
||||
grep -v '^[[:space:]]*#' "$REQUIRED_FEATURES_FILE" 2>/dev/null \
|
||||
tr -d '\r' < "$REQUIRED_FEATURES_FILE" \
|
||||
| grep -v '^[[:space:]]*#' \
|
||||
| grep -qx "[[:space:]]*${feature}[[:space:]]*"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user