From 6df08053c607bd6e7fb959d0c9227e2d5816d0ea Mon Sep 17 00:00:00 2001 From: mitch Date: Thu, 5 Oct 2023 17:02:10 -0400 Subject: [PATCH] Fixed make install command --- Makefile | 14 +++++++------- README.md | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 277290d..c36c80b 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,12 @@ build: # Clean #################################################### clean: - rm -f ~/.local/bin/versionedTerraform + rm -f $(shell go env GOPATH)/bin/versionedTerraform #################################################### # Install #################################################### install: - mv versionedTerraform ~/.local/bin/ + mv versionedTerraform $(shell go env GOPATH)/bin/ #################################################### # help feature #################################################### @@ -20,8 +20,8 @@ help: @echo '' @echo 'Usage: make [TARGET]' @echo 'Targets:' - @echo ' build go build -o versionedTerraform ./cmd' - @echo ' clean removes installed versionedTerraform file' - @echo ' install installs versionedTerraform to local user bin folder' - @echo ' all Nothing to do.' - @echo '' \ No newline at end of file + @echo ' build go build -o versionedTerraform ./cmd' + @echo ' clean removes installed versionedTerraform file' + @echo ' install installs versionedTerraform to bin folder in GOPATH' + @echo ' all Nothing to do.' + @echo '' diff --git a/README.md b/README.md index 62fe7fd..92e6127 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A wrapper for terraform to detect the expected version of terraform, download, and execute that version ## Requirements -- go compiler (only tested on go1.17) +- go ## Install `make build install` for installation to local user
-- 2.45.2