From c76fadf4512ef704fbd8a8c14be71111f3260467 Mon Sep 17 00:00:00 2001 From: Micah Hausler Date: Wed, 6 Oct 2021 14:29:16 -0400 Subject: [PATCH] Make nixfmt happy Signed-off-by: Micah Hausler --- scripts/go_install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/go_install.sh b/scripts/go_install.sh index d7f58cbcd..0f691ed81 100755 --- a/scripts/go_install.sh +++ b/scripts/go_install.sh @@ -5,28 +5,28 @@ set -o nounset set -o pipefail if [ -z "${1}" ]; then - echo "must provide module as first parameter" - exit 1 + echo "must provide module as first parameter" + exit 1 fi if [ -z "${2}" ]; then - echo "must provide binary name as second parameter" - exit 1 + echo "must provide binary name as second parameter" + exit 1 fi if [ -z "${3}" ]; then - echo "must provide version as third parameter" - exit 1 + echo "must provide version as third parameter" + exit 1 fi if [ -z "${GOBIN}" ]; then - echo "GOBIN is not set. Must set GOBIN to install the bin in a specified directory." - exit 1 + echo "GOBIN is not set. Must set GOBIN to install the bin in a specified directory." + exit 1 fi tmp_dir=$(mktemp -d -t goinstall_XXXXXXXXXX) -function clean { - rm -rf "${tmp_dir}" +function clean() { + rm -rf "${tmp_dir}" } trap clean EXIT