Browse Source

attempt to fix sed

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

4
lgsm/functions/mods_core.sh

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

Loading…
Cancel
Save