Explorar o código

fix: the compressed package contains multiple duplicate files

yr hai 1 ano
pai
achega
fd4c8b1a80
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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]),