aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-10 12:19:10 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-10 12:19:10 +0000
commita8ef949aa802fcc067ac8c2f5a6209bfc6a1d154 (patch)
tree7de263193333e5f0f9caf3eefe894a86c4f01c36
parentd4441873dc3ee7c404e94ed68e69af107074738d (diff)
downloadremove-old-kernels-a8ef949aa802fcc067ac8c2f5a6209bfc6a1d154.tar
remove-old-kernels-a8ef949aa802fcc067ac8c2f5a6209bfc6a1d154.tar.gz
remove-old-kernels-a8ef949aa802fcc067ac8c2f5a6209bfc6a1d154.tar.bz2
remove-old-kernels-a8ef949aa802fcc067ac8c2f5a6209bfc6a1d154.tar.xz
remove-old-kernels-a8ef949aa802fcc067ac8c2f5a6209bfc6a1d154.zip
replace ON/OFF with 1/0 on status line for i18n
-rwxr-xr-xremove-old-kernels4
1 files changed, 2 insertions, 2 deletions
diff --git a/remove-old-kernels b/remove-old-kernels
index cb68cd7..ed8577f 100755
--- a/remove-old-kernels
+++ b/remove-old-kernels
@@ -255,8 +255,8 @@ if [[ $dnfNBK -gt $NBK ]] || $dnfmsg; then
fi
# Get info for status message
-if [[ "$CRON" == "1" ]]; then autostat="ON"; else autostat="${Normal}${WarnBgCol}OFF${HdBgCol}"; fi
-if [[ "$QA" == "1" ]]; then qamssg="| Q:ON "; fi
+if [[ "$CRON" == "1" ]]; then autostat="1"; else autostat="${Normal}${WarnBgCol}0${HdBgCol}"; fi
+if [[ "$QA" == "1" ]]; then qamssg="| Q "; fi
if [[ $ALTCFG -gt 0 ]]; then cfgmssg="|${Normal}${WarnBgCol}F:${ALTCFG}${HdBgCol} "; fi
# Check that the running kernel is still installed: https://bugs.mageia.org/show_bug.cgi?id=31015