From 064f30fc39bab1a0746ed8df8948c6bbf856f52d Mon Sep 17 00:00:00 2001 From: Leo Dev Date: Tue, 21 May 2024 16:44:36 +0200 Subject: [PATCH] progress bar fix --- .gitignore | 3 +++ src/install.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8915412..8e27a8f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ # Output /bin + +# Lib +/lib diff --git a/src/install.go b/src/install.go index 824b0e3..671f3d8 100644 --- a/src/install.go +++ b/src/install.go @@ -20,7 +20,7 @@ type PackageVersion struct { } func installPackage(packageName, packageVersion string) { - progress := ProgressBar{total: 10, length: 20, enabled: false} + progress := ProgressBar{total: 10, length: 20, enabled: true} progress.change(1, "", "Fetching") repoURL, err := getRepoURL(packageName) if err != nil {