From e5aa2e5802dea9d56800c800316c386222523ad5 Mon Sep 17 00:00:00 2001 From: Edoardo Tenani Date: Sat, 21 Jul 2018 00:56:37 +0200 Subject: [PATCH] fix build script --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index e24632d..e032758 100755 --- a/build.sh +++ b/build.sh @@ -16,7 +16,7 @@ if [ ! $last_tag_ref == $last_commit_ref ]; then exit 1 fi -mv dist/ dist.prev/ +[ -d dist/ ] && mv dist/ dist.prev/ xgo \ --targets="darwin/amd64,linux/amd64" \ @@ -25,6 +25,8 @@ xgo \ -v -x \ github.com/endorama/two-factor-authenticator +sudo chown $USER: -R dist + gpg_sign_key="edoardo.tenani@protonmail.com" checksum_file="dist/two-factor-authenticator_${version}_checksums.txt"