Skip to content

Commit 860f664

Browse files
committed
Fix progressbar
1 parent a8e959f commit 860f664

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/scanner/scan.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func ScanSite(
245245
opts.ScanMode = "stealthy"
246246
}
247247

248-
if progress != nil {
248+
if progress != nil && opts.File == "" {
249249
progress.ClearLine()
250250
}
251251

@@ -272,7 +272,7 @@ func ScanSite(
272272
}
273273

274274
if len(detected) == 0 {
275-
if progress != nil {
275+
if progress != nil && opts.File == "" {
276276
progress.ClearLine()
277277
}
278278
if opts.File == "" {
@@ -357,7 +357,7 @@ func ScanSite(
357357

358358
wg.Wait()
359359

360-
if progress != nil {
360+
if progress != nil && opts.File == "" {
361361
progress.ClearLine()
362362
}
363363

internal/utils/progress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
)
3434

3535
const (
36-
msgWidth = 40 // fixed width for progress messages
36+
msgWidth = 50 // fixed width for progress messages
3737
)
3838

3939
type ProgressManager struct {

0 commit comments

Comments
 (0)