From 2209027abd2cc69225430c6b1debd58016a548a8 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 12 Mar 2021 10:48:16 +0000 Subject: [PATCH] remove dirlist. It wasn't being used anyway. add verbose logging to build command --- bitbucket-pipelines.yml | 2 +- dirlist.go | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 dirlist.go diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index ca366e0..47044a7 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -23,4 +23,4 @@ pipelines: - mkdir ./build - go version - go mod tidy - - go build -a -v -n -o ./build/ . + - go build -a -v -o ./build/ . diff --git a/dirlist.go b/dirlist.go deleted file mode 100644 index fe82e42..0000000 --- a/dirlist.go +++ /dev/null @@ -1,21 +0,0 @@ -package main - -import ( - "fmt" - "os" -) - -func dirlist() []string { - var output []string - wd, _ := os.Getwd() - dirlist, _ := os.ReadDir(wd) - for _, item := range dirlist { - if os.DirEntry.IsDir(item) { - output = append(output, fmt.Sprintf(wd + "/" + os.DirEntry.Name(item) + "/")) - } else { - output = append(output, fmt.Sprintf(wd + "/" + os.DirEntry.Name(item))) - } - } - return output -} -