Skip to content

Commit

Permalink
Fix upload overwrite flag usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sibprogrammer committed Oct 6, 2023
1 parent 048f9bd commit ed468e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/actions/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func UploadFileToRoot(host types.Server, domain types.Domain, ovw bool, file str
}

cr, f := utils.GetClientRootName(file)
return strings.Split(*path, *docroot)[0], connection.UploadFile(cr, "/", f, true, host.Info.IsWindows)
return strings.Split(*path, *docroot)[0], connection.UploadFile(cr, "/", f, ovw, host.Info.IsWindows)
}

func UploadFile(host types.Server, domain types.Domain, ovw bool, file string) error {
Expand Down

0 comments on commit ed468e8

Please sign in to comment.