diff --git a/pkg/alrsh/package.go b/pkg/alrsh/package.go index 203ab83..0752b77 100644 --- a/pkg/alrsh/package.go +++ b/pkg/alrsh/package.go @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -//go:generate go run ../../generators/alrsh-package +//go:generate bash -c "go run ../../generators/alrsh-package && cd ../.. && make update-license" package alrsh diff --git a/pkg/dl/file.go b/pkg/dl/file.go index e0eda04..7797931 100644 --- a/pkg/dl/file.go +++ b/pkg/dl/file.go @@ -108,7 +108,7 @@ func (FileDownloader) Download(ctx context.Context, opts Options) (Type, string, } defer r.Close() - opts.PostprocDisabled = archive == "false" + postprocDisabled := opts.PostprocDisabled || archive == "false" path := filepath.Join(opts.Destination, name) fl, err := os.Create(path) @@ -154,7 +154,7 @@ func (FileDownloader) Download(ctx context.Context, opts Options) (Type, string, } // Проверка необходимости постобработки - if opts.PostprocDisabled { + if postprocDisabled { return TypeFile, name, nil }