From 1d260fb91997249aa3b9f46788c0869204fc5cd4 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Fri, 26 Feb 2021 11:33:22 -0500 Subject: [PATCH] Improve linux bin script --- contrib/devtools/gen-linux-binary-release.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/devtools/gen-linux-binary-release.sh b/contrib/devtools/gen-linux-binary-release.sh index 07e7af868..6d03d656d 100755 --- a/contrib/devtools/gen-linux-binary-release.sh +++ b/contrib/devtools/gen-linux-binary-release.sh @@ -5,8 +5,10 @@ set -e set -x -#TODO: autodect version number, error handling -FILE="hush-3.6.2-linux-amd64.tar" +#hardcode and uncomment if hushd is not running on this machine +#VERSION=3.6.3 +VERSION=$(./src/hushd --version|grep version|cut -d' ' -f4|cut -d- -f1|sed 's/v//g') +FILE="hush-$VERSION-linux-amd64.tar" TIME=$(perl -e 'print time') mv build build.$TIME