From 47c91e0002d5edfe80e7823cfa0d40464962b99b Mon Sep 17 00:00:00 2001 From: Qiu Date: Fri, 17 Dec 2021 09:38:59 +0100 Subject: [PATCH] Make build and install scripts more portable (#325) --- scripts/build.sh | 2 +- scripts/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 6916d5b..4f9fbcc 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash version=$(git describe --exact-match --tags 2>/dev/null || git describe 2>/dev/null || echo "prerelease") go build \ diff --git a/scripts/install.sh b/scripts/install.sh index eb85438..d5500f2 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e