From 10b95672e333bf1919d375fd259ff40fdcd61302 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Fri, 31 Dec 2021 22:28:12 -0500 Subject: [PATCH] up install script for location --- cmd/pttodo-cli/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/pttodo-cli/install.sh b/cmd/pttodo-cli/install.sh index 5ee20dd..03305ff 100644 --- a/cmd/pttodo-cli/install.sh +++ b/cmd/pttodo-cli/install.sh @@ -1,5 +1,7 @@ #! /bin/bash +cd "$(dirname "$BASH_SOURCE")" + binary_name="$(head -n 1 go.mod | awk '{print $NF}' | sed 's/.*\///')" git_commit="$(( git rev-list -1 HEAD