From 392d3aceff2fe81bf4daa5bbbf0da371c1778d7e Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Tue, 2 Dec 2025 22:33:05 +0200 Subject: [PATCH] Fix comments --- webmin-setup-repo.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/webmin-setup-repo.sh b/webmin-setup-repo.sh index 52d096776..811ea9bc5 100644 --- a/webmin-setup-repo.sh +++ b/webmin-setup-repo.sh @@ -291,8 +291,12 @@ set_os_variables() { } ask_confirmation() { - repo_desc_formatted=$(echo "$active_repo_description" | \ - sed 's/\([^ ]*\)\(.*\)/\1\L\2/') + # Format description so only the first word keeps its case and the rest is + # lowercased + repo_desc_formatted=$(echo "$active_repo_description" | \ + sed 's/\([^ ]*\)\(.*\)/\1\L\2/') + + # Show special messages for prerelease and unstable repos case "$repo_mode" in prerelease) printf \ @@ -399,6 +403,8 @@ rpm_repo_prefs() { } setup_repos() { + # Format description so only the first word keeps its case and the rest is + # lowercased repo_desc_formatted=$(echo "$active_repo_description" | \ sed 's/\([^ ]*\)\(.*\)/\1\L\2/')