diff options
author | Barry Jackson <barjac@mageia.org> | 2023-01-07 13:08:15 +0000 |
---|---|---|
committer | Barry Jackson <barjac@mageia.org> | 2023-01-07 13:08:15 +0000 |
commit | 5cc83276c105860353deb53c62cba9099df5b63e (patch) | |
tree | d3a8d6dabbc7b5d562ac706e995cadf1c5afc0e7 | |
parent | 36e408751d51f8eed03d98b619482e9953d37388 (diff) | |
download | remove-old-kernels-5cc83276c105860353deb53c62cba9099df5b63e.tar remove-old-kernels-5cc83276c105860353deb53c62cba9099df5b63e.tar.gz remove-old-kernels-5cc83276c105860353deb53c62cba9099df5b63e.tar.bz2 remove-old-kernels-5cc83276c105860353deb53c62cba9099df5b63e.tar.xz remove-old-kernels-5cc83276c105860353deb53c62cba9099df5b63e.zip |
add check for A y/n and add more i18n strings
-rw-r--r-- | locale/de_DE.UTF-8/LC_MESSAGES/remove-old-kernels.mo | bin | 6001 -> 6228 bytes | |||
-rw-r--r-- | locale/en_GB.UTF-8/LC_MESSAGES/remove-old-kernels.mo | bin | 5552 -> 5780 bytes | |||
-rw-r--r-- | locale/en_US.UTF-8/LC_MESSAGES/remove-old-kernels.mo | bin | 5551 -> 5779 bytes | |||
-rw-r--r-- | locale/fr_FR.UTF-8/LC_MESSAGES/remove-old-kernels.mo | bin | 5967 -> 6194 bytes | |||
-rw-r--r-- | locale/nl_NL.UTF-8/LC_MESSAGES/remove-old-kernels.mo | bin | 5926 -> 6153 bytes | |||
-rw-r--r-- | po/de_DE.UTF-8.po | 3 | ||||
-rw-r--r-- | po/en_GB.UTF-8.po | 3 | ||||
-rw-r--r-- | po/en_US.UTF-8.po | 3 | ||||
-rw-r--r-- | po/fr_FR.UTF-8.po | 3 | ||||
-rw-r--r-- | po/nl_NL.UTF-8.po | 3 | ||||
-rw-r--r-- | po/pt_BR.UTF-8.po | 3 | ||||
-rw-r--r-- | remove-old-kernels | 9 |
12 files changed, 26 insertions, 1 deletions
diff --git a/locale/de_DE.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/de_DE.UTF-8/LC_MESSAGES/remove-old-kernels.mo Binary files differindex ae44515..5f74939 100644 --- a/locale/de_DE.UTF-8/LC_MESSAGES/remove-old-kernels.mo +++ b/locale/de_DE.UTF-8/LC_MESSAGES/remove-old-kernels.mo diff --git a/locale/en_GB.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/en_GB.UTF-8/LC_MESSAGES/remove-old-kernels.mo Binary files differindex 6121dc3..d4b1bc9 100644 --- a/locale/en_GB.UTF-8/LC_MESSAGES/remove-old-kernels.mo +++ b/locale/en_GB.UTF-8/LC_MESSAGES/remove-old-kernels.mo diff --git a/locale/en_US.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/en_US.UTF-8/LC_MESSAGES/remove-old-kernels.mo Binary files differindex 9860c4d..f072a92 100644 --- a/locale/en_US.UTF-8/LC_MESSAGES/remove-old-kernels.mo +++ b/locale/en_US.UTF-8/LC_MESSAGES/remove-old-kernels.mo diff --git a/locale/fr_FR.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/fr_FR.UTF-8/LC_MESSAGES/remove-old-kernels.mo Binary files differindex 59b875d..231c2ed 100644 --- a/locale/fr_FR.UTF-8/LC_MESSAGES/remove-old-kernels.mo +++ b/locale/fr_FR.UTF-8/LC_MESSAGES/remove-old-kernels.mo diff --git a/locale/nl_NL.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/nl_NL.UTF-8/LC_MESSAGES/remove-old-kernels.mo Binary files differindex b0f2687..a21fab7 100644 --- a/locale/nl_NL.UTF-8/LC_MESSAGES/remove-old-kernels.mo +++ b/locale/nl_NL.UTF-8/LC_MESSAGES/remove-old-kernels.mo diff --git a/po/de_DE.UTF-8.po b/po/de_DE.UTF-8.po index cc55391..f5771ee 100644 --- a/po/de_DE.UTF-8.po +++ b/po/de_DE.UTF-8.po @@ -53,6 +53,9 @@ msgstr "interaktiv" msgid "abort" msgstr "abbrechen" +msgid "Aborted" +msgstr "Abgebrochen" + msgid "quit" msgstr "verlassen" diff --git a/po/en_GB.UTF-8.po b/po/en_GB.UTF-8.po index 973d46d..d1b4535 100644 --- a/po/en_GB.UTF-8.po +++ b/po/en_GB.UTF-8.po @@ -55,6 +55,9 @@ msgstr "interactive" msgid "abort" msgstr "abort" +msgid "Aborted" +msgstr "Aborted" + msgid "quit" msgstr "quit" diff --git a/po/en_US.UTF-8.po b/po/en_US.UTF-8.po index c211697..6431c99 100644 --- a/po/en_US.UTF-8.po +++ b/po/en_US.UTF-8.po @@ -55,6 +55,9 @@ msgstr "interactive" msgid "abort" msgstr "abort" +msgid "Aborted" +msgstr "Aborted" + msgid "quit" msgstr "quit" diff --git a/po/fr_FR.UTF-8.po b/po/fr_FR.UTF-8.po index e27b2fd..def5550 100644 --- a/po/fr_FR.UTF-8.po +++ b/po/fr_FR.UTF-8.po @@ -53,6 +53,9 @@ msgstr "interactif" msgid "abort" msgstr "abandonner" +msgid "Aborted" +msgstr "Avorté" + msgid "quit" msgstr "quitter" diff --git a/po/nl_NL.UTF-8.po b/po/nl_NL.UTF-8.po index 8552009..1d3197f 100644 --- a/po/nl_NL.UTF-8.po +++ b/po/nl_NL.UTF-8.po @@ -53,6 +53,9 @@ msgstr "interactief" msgid "abort" msgstr "abort" +msgid "Aborted" +msgstr "afgebroken" + msgid "quit" msgstr "vertrekken" diff --git a/po/pt_BR.UTF-8.po b/po/pt_BR.UTF-8.po index 0d13c04..a04f6b5 100644 --- a/po/pt_BR.UTF-8.po +++ b/po/pt_BR.UTF-8.po @@ -53,6 +53,9 @@ msgstr "interativo" msgid "abort" msgstr "abortar" +msgid "Aborted" +msgstr "Abortado" + msgid "quit" msgstr "sair" diff --git a/remove-old-kernels b/remove-old-kernels index 2a12851..0b86beb 100644 --- a/remove-old-kernels +++ b/remove-old-kernels @@ -98,7 +98,14 @@ fi # Check for CRON variable in config or add default. (Some users may have early version without this feature) if ! grep -q -e "CRON=" ${maincfg}; then - echo -e "\n# # Allow cron to run 'remove-old-kernels' weekly. Replace '1' with '0' to disable it.\nCRON=1" >> ${maincfg} + echo -e "\n# # Allow cron to run 'remove-old-kernels' weekly. Replace '1' with '0' to disable it.\nCRON=1" >> ${maincfg} +fi + +# Check for CRON set to old y/n values and update +if [[ ${#CRON} = 1 ]] && [[ "ny" =~ "$CRON" ]]; then + [[ $CRON == y ]] && CRON=1 + [[ $CRON == n ]] && CRON=0 + /usr/bin/sed -i "s/CRON=.*/CRON=${CRON}/" ${currcfg} fi # Check dnf limit before option parsing |