Переглянути джерело

woops² should remove mods now

UltimateByte 9 роки тому
батько
коміт
ac58e6eddb
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      lgsm/functions/command_mods_remove.sh

+ 2 - 2
lgsm/functions/command_mods_remove.sh

@@ -70,8 +70,8 @@ fn_mod_remove_process(){
 	while [ $modfileline -le $modsfilelistsize ]; do
 		# Current line defines current mod command
 		currentfileremove="$(sed "${modfileline}q;d" "${modsdatadir}/${modcommand}-files.list")"
-		if [ -f "${modinstalldir}/${currentfileremove}" ]||[ -f "${modinstalldir}/${currentfileremove}" ]; then
-			rm -rfv "${currentfileremove}"
+		if [ -f "${modinstalldir}/${currentfileremove}" ]||[ -d "${modinstalldir}/${currentfileremove}" ]; then
+			rm -rfv "${modinstalldir}/${currentfileremove}"
 		fi
 		let modfileline=modfileline+1
 	done