aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xremove-old-kernels2
1 files changed, 1 insertions, 1 deletions
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