From ac58e6eddb9f889a7a8fc02665fdb05c43717fc8 Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Mon, 16 Jan 2017 21:26:14 +0100 Subject: [PATCH] =?UTF-8?q?woops=C2=B2=20should=20remove=20mods=20now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lgsm/functions/command_mods_remove.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_mods_remove.sh b/lgsm/functions/command_mods_remove.sh index eeb00f2ed..43a8ddae5 100644 --- a/lgsm/functions/command_mods_remove.sh +++ b/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