From 8c58311365ccff6600c9dfc16803f5db97c979f3 Mon Sep 17 00:00:00 2001 From: Barry Jackson Date: Sat, 28 Jan 2023 14:21:41 +0000 Subject: fix missing --auto --- remove-old-kernels | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/remove-old-kernels b/remove-old-kernels index 0de12cd..294018a 100755 --- a/remove-old-kernels +++ b/remove-old-kernels @@ -451,10 +451,8 @@ if (( ${#dnfmssg} > 0 ));then echo -e "${dnfmssg}"; fi #================================= Mode of execution =================== nbt=$(wc -l < "${TMPKTR}") -##nbt=$(cat "${TMPKTR}" | wc -l) -if [[ ${nbt} -ne 0 ]] ; then +if (( nbt != 0 )) ; then (( UID > 0 )) && echo -e "${RemvCol}$(i18n "Must be root to allow removal")\n${Normal}" -# chk_num $VISU if (( VISU == 1 )); then plural="s"; (( nbt == 1 )) && plural="" if [[ "$plural" == "s" ]]; then @@ -532,6 +530,7 @@ if [[ ${nbt} -ne 0 ]] ; then ;; esac else # --- automatic mode --- + AUTO="--auto" if (( DEBUG == 1 )) ; then echo -e "${InfoCol}$(i18n "DEBUG: Could execute: urpme") ${AUTO} ${installedKernelPackage}${Normal}" ((nbt--)) -- cgit v1.2.1