Browse Source

fix(vints): remove old assets before extracting an update (#5032)

Daniel Gibbs 5 days ago
parent
commit
5714958bd6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lgsm/modules/update_vints.sh

+ 1 - 0
lgsm/modules/update_vints.sh

@@ -10,6 +10,7 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 fn_update_dl() {
 	# Download and extract files to serverfiles.
 	fn_fetch_file "${remotebuildurl}" "" "" "" "${tmpdir}" "${remotebuildfilename}" "nochmodx" "norun" "force" "${remotebuildhash}"
+	rm -rf "${serverfiles:?}/assets"
 	fn_dl_extract "${tmpdir}" "${remotebuildfilename}" "${serverfiles}"
 	fn_clear_tmp
 }