From 5aae65980dfa619aeb9b8e3df3d5152cfaacb2f0 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Wed, 24 Nov 2021 08:52:18 +0300 Subject: [PATCH] [Make] remove release folders after zipping --- Makefile | 5 ++++- src/main.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 16fa824..b6b54db 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,9 @@ pkgrelease: cd $(RELEASE_DIR) && zip -r darwin_amd64 darwin_amd64/ cd $(RELEASE_DIR) && zip -r windows_amd64 windows_amd64/ + rm -rf $(RELEASE_DIR)/linux_amd64 + rm -rf $(RELEASE_DIR)/darwin_amd64 + rm -rf $(RELEASE_DIR)/windows_amd64 race: cd $(SRC_DIR) && go build -race && mv $(EXE_NAME) .. @@ -43,4 +46,4 @@ test: cd $(SRC_DIR) && go test ./... clean: - rm $(EXE_NAME) \ No newline at end of file + rm -rf $(EXE_NAME) $(RELEASE_DIR) \ No newline at end of file diff --git a/src/main.go b/src/main.go index 0e602f4..21850a5 100644 --- a/src/main.go +++ b/src/main.go @@ -60,7 +60,7 @@ func init() { fmt.Printf("| -a [ip_address|domain_name] address to connect to (cannot be used with -s)\n") fmt.Printf("| -d [path_to_directory] where the files will be downloaded to (cannot be used with -s)\n") fmt.Printf("| -s [path_to_file|directory] to send it (cannot be used with -a)\n") - fmt.Printf("| -vp [true|false] to turn off|on verbose output") + fmt.Printf("| -vp [true|false] to turn on|off verbose output") fmt.Printf("| -l print license information\n") fmt.Printf("| -v print version information\n\n\n")