UltimateByte 9 лет назад
Родитель
Сommit
f2dc5fd1a5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lgsm/functions/mods_core.sh

+ 2 - 2
lgsm/functions/mods_core.sh

@@ -190,7 +190,7 @@ fn_postinstall_tasks(){
 	# Output to the user
 	# Output to the user
 	fn_print_information_nl "Rearranging ${modcommand}-files.list"
 	fn_print_information_nl "Rearranging ${modcommand}-files.list"
 	fn_script_log_info "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
 	# 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
 	# that way these files won't get removed upon update or uninstall
 	fileslistline=1
 	fileslistline=1
@@ -205,7 +205,7 @@ fn_postinstall_tasks(){
 			# If it matches
 			# If it matches
 			if [ "${testline}" == "${smremovetestvar}" ]; then
 			if [ "${testline}" == "${smremovetestvar}" ]; then
 				# Then delete the line!
 				# Then delete the line!
-				sed -i "${testline}d" "${modsdatadir}/${modcommand}-files.list"
+				sed -i "/${testline}/d" "${modsdatadir}/${modcommand}-files.list"
 			fi
 			fi
 		done
 		done
 		let fileslistline=fileslistline+1
 		let fileslistline=fileslistline+1