mirror of
https://github.com/Luzifer/s3sync.git
synced 2024-12-20 11:31:17 +00:00
Fix: Do not exit before every sync is done
This commit is contained in:
parent
418257e9cd
commit
32116ec009
1 changed files with 8 additions and 0 deletions
8
main.go
8
main.go
|
@ -8,6 +8,7 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Luzifer/s3sync/logger"
|
||||
"github.com/spf13/cobra"
|
||||
|
@ -150,6 +151,13 @@ func execSync(cmd *cobra.Command, args []string) {
|
|||
}(remoteFile)
|
||||
}
|
||||
}
|
||||
|
||||
for {
|
||||
if len(syncChannel) == 0 {
|
||||
break
|
||||
}
|
||||
<-time.After(time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
func errExit(err error) {
|
||||
|
|
Loading…
Reference in a new issue