From 41be5e5e4f1448487ee97cd43d1214471c542343 Mon Sep 17 00:00:00 2001 From: John Gebbie Date: Tue, 10 Jan 2023 10:41:45 +0000 Subject: [PATCH] install: let $DOTOOL_VERSION set --version --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 4fd60c1..972c5fa 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/sh # ./install.sh [DESTDIR] [BINDIR] -version="$(git describe --long --abbrev=12 --tags --dirty 2>/dev/null || echo 1.0)" -go build -ldflags "-X main.Version=$version" || exit +: "${DOTOOL_VERSION=$(git describe --long --abbrev=12 --tags --dirty 2>/dev/null || echo 1.0)}" +go build -ldflags "-X main.Version=$DOTOOL_VERSION" || exit mkdir -p "$1/${2:-usr/local/bin}" || exit cp -v dotool dotoolc dotoold "$1/${2:-usr/local/bin}" || exit mkdir -p "$1/etc/udev/rules.d" || exit