aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-15 17:20:34 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-15 17:20:34 +0000
commitbd8d2cb110c1c86327365b6f62157d3d18001db3 (patch)
tree0acba536b6f3dc326dea805b4091b45eba6afd05
parentc6a1632839bb1205a2a3b128f7ce3ffc88e9b68e (diff)
downloadremove-old-kernels-bd8d2cb110c1c86327365b6f62157d3d18001db3.tar
remove-old-kernels-bd8d2cb110c1c86327365b6f62157d3d18001db3.tar.gz
remove-old-kernels-bd8d2cb110c1c86327365b6f62157d3d18001db3.tar.bz2
remove-old-kernels-bd8d2cb110c1c86327365b6f62157d3d18001db3.tar.xz
remove-old-kernels-bd8d2cb110c1c86327365b6f62157d3d18001db3.zip
more i18n fixes in rok script
-rwxr-xr-xremove-old-kernels9
1 files changed, 5 insertions, 4 deletions
diff --git a/remove-old-kernels b/remove-old-kernels
index d00ef54..5e80502 100755
--- a/remove-old-kernels
+++ b/remove-old-kernels
@@ -121,7 +121,8 @@ dnfNBK=0; dnfmsg=false
# Function to check we are root or exit
chkroot() {
if (((UID))); then
- echo -e "${RemvCol}$(i18n "Must be root to edit configuration")${Normal}\nHit spacebar"
+ echo -e "${RemvCol}$(i18n "Must be root to edit configuration")\
+ ${Normal}\n$(i18n "Tap spacebar")"
read -n1; echo -en "${ClearLine}"
exit 0
fi
@@ -223,7 +224,7 @@ if [[ ${#} -gt 0 ]] ; then
dnfmsg=true
fi
;;
- l) tail -n1000 /var/log/remove-old-kernels.log && { echo -e "\n$(i18n "Tap spacebar")\n"; read -n1; echo -en "${ClearLine}"; }
+ l) tail -n1000 /var/log/remove-old-kernels.log && { echo -e "\n$(i18n "Tap spacebar to exit")\n"; read -n1; echo -en "${ClearLine}"; }
;;
m) Normal="";RemvCol="";KeepCol="";InfoCol="";HdBgCol="";WarnBgCol="";Clearline=""
;;
@@ -458,7 +459,7 @@ if [[ ${nbt} -ne 0 ]] ; then
kernstr="$(i18n "kernel"):"
fi
read -p "$(i18n "Remove") ${nbt} $kernstr ? \
- $(i18n "y/N/i (i=confirm for each)") " -n 1 response
+ $(i18n "y/N/i (i=confirm for each)") " -n 1 response
if [[ -z ${response} ]] ; then response="n" ; fi
case ${response} in
[Yy])
@@ -527,7 +528,7 @@ if [[ ${nbt} -ne 0 ]] ; then
$(i18n "Kernels in") /boot/: ${NK} ${Normal}"
fi
-[[ $MODE == "I" ]] && { echo $(i18n "Tap spacebar to exit"); read -n1; echo -en "${ClearLine}"; }
+[[ $MODE == "I" ]] && { echo "$(i18n "Tap spacebar to exit")"; read -n1; echo -en "${ClearLine}"; }
rm -f ${TMPKTR}