Skip to content

Commit 7026f3c

Browse files
committed
Only print 'and version' when versioning files
1 parent 5177932 commit 7026f3c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ func main() {
250250
if err != nil {
251251
fatal("failed to get files %s", err)
252252
}
253-
fmt.Printf("Found %d files to upload and version:\n", len(files))
253+
append := " and version"
254+
if *skipVersioning == true {
255+
append = ""
256+
}
257+
fmt.Printf("Found %d files to upload%s:\n", len(files), append)
254258

255259
SetupS3Uploader()
256260
fileVersions, err := VersionAndUploadFiles(*s3Bucket, *directory, files, *dryRun, *skipVersioning)

0 commit comments

Comments
 (0)