From 7ffbfe671418b5e177c97c0b5b04b619c5075c09 Mon Sep 17 00:00:00 2001 From: mahdi Date: Tue, 21 Nov 2023 17:15:42 +0100 Subject: [PATCH] sys/ssh - amend DownloadFile --- ssh/ssh.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssh/ssh.go b/ssh/ssh.go index a552473..3ef88c9 100644 --- a/ssh/ssh.go +++ b/ssh/ssh.go @@ -8,6 +8,7 @@ import ( "net" "os" "os/user" + "path" "strings" "gitea.meta-tech.academy/go/core/echo" @@ -121,6 +122,9 @@ func (s *Ssh) Scp() *sftp.Client { type ApplyOnSize func(s *Ssh, size int64) func (s *Ssh) DownloadFile(remoteFile string, localFile string, display bool, close bool, fn ...ApplyOnSize) bool { + if display { + echo.Action("Downloading docker image", path.Base(remoteFile)) + } done := false alreadyDownload := false checksum := ""