diff options
author | Barry Jackson <barjac@mageia.org> | 2023-01-23 18:56:20 +0000 |
---|---|---|
committer | Barry Jackson <barjac@mageia.org> | 2023-01-23 18:56:20 +0000 |
commit | a85104d7fbded7e1a90ca980175ca3bf69240b97 (patch) | |
tree | 9060d1c2766b02fbf492091bd396b12ff4c3587c | |
parent | c109076b3f5bb38e7d166a4895c27c5967c8adbe (diff) | |
download | remove-old-kernels-a85104d7fbded7e1a90ca980175ca3bf69240b97.tar remove-old-kernels-a85104d7fbded7e1a90ca980175ca3bf69240b97.tar.gz remove-old-kernels-a85104d7fbded7e1a90ca980175ca3bf69240b97.tar.bz2 remove-old-kernels-a85104d7fbded7e1a90ca980175ca3bf69240b97.tar.xz remove-old-kernels-a85104d7fbded7e1a90ca980175ca3bf69240b97.zip |
fix cfg path
-rwxr-xr-x | remove-old-kernels | 2 |
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 |