src

Go monorepo.
Log | Files | Refs

commit 3d7e5981589209b7c6ad20d07bf804250b147804
parent e902c1afe6c1dea29bb0fc93bbff7f1132d56ba3
Author: dwrz <dwrz@dwrz.net>
Date:   Sat, 24 Dec 2022 14:56:51 +0000

Fix make script

Diffstat:
Mmake | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/make b/make @@ -24,7 +24,7 @@ all() { } build() { - local cmd="$1" + cmd="$1" go build \ -ldflags "${LDFLAGS}" \ @@ -57,7 +57,7 @@ lint() { } run() { - local cmd="$1" + cmd="$1" build "${cmd}" @@ -65,8 +65,8 @@ run() { } main() { - local action="$1"; - if [ ! -z "${action}" ]; then + action="$1"; + if [ -n "${action}" ]; then shift; fi