fix(dfget): Change file path (#3519)
This commit is contained in:
parent
7bcbac9d61
commit
b226996977
|
|
@ -160,7 +160,7 @@ func downloadFromSource(ctx context.Context, cfg *config.DfgetConfig, hdr map[st
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
if !renameOK {
|
if !renameOK {
|
||||||
tempPath := path.Join(filepath.Dir(cfg.Output), tempFile.Name())
|
tempPath := tempFile.Name()
|
||||||
removeErr := os.Remove(tempPath)
|
removeErr := os.Remove(tempPath)
|
||||||
if removeErr != nil {
|
if removeErr != nil {
|
||||||
wLog.Infof("remove temporary file %s error: %s", tempPath, removeErr)
|
wLog.Infof("remove temporary file %s error: %s", tempPath, removeErr)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue