Browse Source

Escape slashes in sed

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

4
lgsm/functions/mods_core.sh

@ -230,8 +230,8 @@ fn_postinstall_tasks(){
# 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"
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