commit f7cc5fabbb2e1a00b2e2512f9457291224203526
parent 675eb7cc249d6e7fff2e06bed057ef3fd159832f
Author: Sean Enck <sean@ttypty.com>
Date: Wed, 15 Feb 2023 19:21:29 -0500
write to stdout
Diffstat:
2 files changed, 2 insertions(+), 6 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
+ ./scripts/version > cmd/vers.txt
go build $(GOFLAGS) -o $@ cmd/main.go
$(TESTDIR):
diff --git a/scripts/version b/scripts/version
@@ -19,8 +19,4 @@ _version() {
printf "%s" "$vers"
}
-_main() {
- _version > cmd/vers.txt
-}
-
-_main
+_version