From a85104d7fbded7e1a90ca980175ca3bf69240b97 Mon Sep 17 00:00:00 2001 From: Barry Jackson Date: Mon, 23 Jan 2023 18:56:20 +0000 Subject: fix cfg path --- remove-old-kernels | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remove-old-kernels b/remove-old-kernels index 1d39020..473f1a3 100755 --- a/remove-old-kernels +++ b/remove-old-kernels @@ -107,7 +107,7 @@ source ${maincfg} || { echo -e "${RemvCol}$(i18n "FATAL: Failed to read:")${Norm # If an alt .cfg is set in main .cfg if cat ${maincfg}|grep -q "ALTCFG=" && [[ $ALTCFG -gt 0 ]]; then # Check it really exists - if [[ -f ${cfgpath}$prog_$ALTCFG.cfg ]]; then + if [[ -f "${cfgpath}${prog}_$ALTCFG.cfg" ]]; then # Set current cfg to it currcfg="${cfgpath}${prog}_${ALTCFG}.cfg" source $currcfg -- cgit v1.2.1