fix(build): Fix shebang in build-release.sh

This commit is contained in:
Vincent Ambo 2018-06-09 21:57:32 +02:00 committed by Vincent Ambo
parent 97bef90387
commit 3a688191af

View file

@ -1,3 +1,6 @@
#!/usr/bin/env bash
set -ueo pipefail
# Copyright (C) 2016-2017 Vincent Ambo <mail@tazj.in> # Copyright (C) 2016-2017 Vincent Ambo <mail@tazj.in>
# #
# This file is part of Kontemplate. # This file is part of Kontemplate.
@ -7,9 +10,6 @@
# the Free Software Foundation, either version 3 of the License, or # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
#!/bin/bash
set -ueo pipefail
readonly GIT_HASH="$(git rev-parse --short HEAD)" readonly GIT_HASH="$(git rev-parse --short HEAD)"
readonly LDFLAGS="-X main.gitHash=${GIT_HASH} -w -s" readonly LDFLAGS="-X main.gitHash=${GIT_HASH} -w -s"
readonly VERSION="1.6.0-${GIT_HASH}" readonly VERSION="1.6.0-${GIT_HASH}"