|
|
@@ -190,7 +190,7 @@ fn_postinstall_tasks(){
|
|
|
# Output to the user
|
|
|
fn_print_information_nl "Rearranging ${modcommand}-files.list"
|
|
|
fn_script_log_info "Rearranging ${modcommand}-files.list"
|
|
|
- smremovefromlist="cfg;addons"
|
|
|
+ smremovefromlist="cfg;addons;"
|
|
|
# Loop through every single line to find any of the files to remove from the list
|
|
|
# that way these files won't get removed upon update or uninstall
|
|
|
fileslistline=1
|
|
|
@@ -205,7 +205,7 @@ fn_postinstall_tasks(){
|
|
|
# If it matches
|
|
|
if [ "${testline}" == "${smremovetestvar}" ]; then
|
|
|
# Then delete the line!
|
|
|
- sed -i "${testline}d" "${modsdatadir}/${modcommand}-files.list"
|
|
|
+ sed -i "/${testline}/d" "${modsdatadir}/${modcommand}-files.list"
|
|
|
fi
|
|
|
done
|
|
|
let fileslistline=fileslistline+1
|