commit cd8c35c6a36b52c98ec1fb340577bd10965bea85
parent f020641ea3a1318c548c491bbd0f998cb7430fe5
Author: Sean Enck <sean@ttypty.com>
Date: Thu, 16 Feb 2023 20:20:47 -0500
use arg
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -15,7 +15,7 @@ all: $(TARGET)
build: $(TARGET) $(MAN)
$(TARGET): cmd/main.go internal/**/*.go go.* internal/cli/completions*
- ./scripts/version > cmd/vers.txt
+ ./scripts/version cmd/vers.txt
go build $(GOFLAGS) -o $@ cmd/main.go
$(TESTDIR):
diff --git a/scripts/version b/scripts/version
@@ -19,4 +19,4 @@ _version() {
printf "%s" "$vers"
}
-_version
+_version > "$1"