Jelajahi Sumber

fix: the compressed package contains multiple duplicate files

yr 1 tahun lalu
induk
melakukan
fd4c8b1a80
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/emqx_plugrel.erl

+ 1 - 1
src/emqx_plugrel.erl

@@ -134,7 +134,7 @@ make_tar(#{name := Name, rel_vsn := Vsn, rel_apps := Apps} = Info, State) ->
     end.
 
 do_make_tar(Cwd, NameWithVsn) ->
-    Files = filelib:wildcard(NameWithVsn ++ "/**"),
+    Files = filelib:wildcard(NameWithVsn ++ "/*"),
     TarFile = NameWithVsn ++ ".tar.gz",
     FullName = filename:join([Cwd, TarFile]),
     ?LOG(info, "Trying create ~ts", [FullName]),