Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
stages:
- commit-msg
repo: https://github.com/commitizen-tools/commitizen
rev: v4.13.9
rev: v4.13.10
- hooks:
- id: check-useless-excludes
repo: meta
Expand Down Expand Up @@ -51,7 +51,7 @@ repos:
rev: v6.0.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.9
rev: v0.15.11
hooks:
# Run the linter.
- id: ruff
Expand All @@ -61,7 +61,7 @@ repos:
- id: ruff-format

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.0-1
rev: v3.13.1-1
hooks:
# Choose one of:
- id: shfmt # native (requires/installs Go to build)
Expand Down
6 changes: 3 additions & 3 deletions risuclient/plugins/core/sysinfo/lifecycle/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ else
exit ${RC_FAILED}
else
# Check dates for release + 2
if [[ ${fedoraRD[FR+2]} == "" ]]; then
if [[ ${fedoraRD[FR + 2]} == "" ]]; then
# Next release is not yet defined, exit as OK
exit ${RC_OKAY}
else
# Fedora is supported until 30 days after release of next two versions
if is_date_over_today "${fedoraRD[FR+2]}"; then
if are_dates_diff_over 210 "${fedoraRD[FR+2]}" "$(LC_ALL=C LANG=C date)"; then
if is_date_over_today "${fedoraRD[FR + 2]}"; then
if are_dates_diff_over 210 "${fedoraRD[FR + 2]}" "$(LC_ALL=C LANG=C date)"; then
exit ${RC_OKAY}
else
echo $"Your system is within the half-year period to become unsupported" >&2
Expand Down
Loading