mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix(release): create download directories, refuse duplicate asset names and empty notes (follow gh)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
5 files changed
+41
No files matched your search
@@ -87,6 +87,9 @@ func (a *application) download(cmd *cobra.Command, f downloadFlags, path string,
|
||||
if path == "-" {
|
||||
return writeTerminalSafe(cmd.OutOrStdout(), a.deps.Streams.OutTTY, body)
|
||||
}
|
||||
if err := os.MkdirAll(filepath.Dir(path), 0o777); err != nil {
|
||||
return err
|
||||
}
|
||||
return publish(cmd, path, false, f.clobber, func(destination io.Writer) error {
|
||||
_, err := io.Copy(destination, body)
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user