Skip to content

Commit fbd5bef

Browse files
committed
dev
1 parent a7f9966 commit fbd5bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SSH/SCP.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public extension SSH {
1717
/// - Returns: A `Bool` indicating whether the file was successfully sent.
1818
func send(local: String, remote: String, permissions: FilePermissions = .default, sftp: Bool = false, progress: @escaping (_ send: Int) -> Bool = { _ in true }) async -> Bool {
1919
if sftp {
20-
await upload(local: local, remote: remote, permissions: permissions, progress: progress)
20+
return await upload(local: local, remote: remote, permissions: permissions, progress: progress)
2121
}
2222
guard let stream = InputStream(fileAtPath: local) else {
2323
return false

0 commit comments

Comments
 (0)