Browse Source

Remove metamod dir from sourcemod file list

pull/1255/head
UltimateByte 8 years ago
committed by GitHub
parent
commit
a3501e6544
  1. 7
      lgsm/functions/mods_core.sh

7
lgsm/functions/mods_core.sh

@ -226,6 +226,13 @@ fn_postinstall_tasks(){
# Then delete matching line(s)!
sed -i "/^${removefilevar}$/d" "${modsdatadir}/${modcommand}-files.list"
done
# Sourcemod fix
# Remove metamod from sourcemod fileslist
if [ "${modcommand}" == "sourcemod" ]; then
# Remove addons/metamod & addons/metamod/sourcemod.vdf from ${modcommand}-files.list
sed -i "/^addons/metamod$/d" "${modsdatadir}/${modcommand}-files.list"
sed -i "/^addons/metamod/sourcemod.vdf$/d" "${modsdatadir}/${modcommand}-files.list"
fi
fn_print_ok "Rearranging ${modcommand}-files.list"
}

Loading…
Cancel
Save