From af716f8bffb6c42f4d996f0776b43ffcf33b4bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Thu, 22 May 2025 11:38:24 +0200 Subject: [PATCH] CI: fix shebang in .ci.*.sh scripts Fix shebang in .ci.*.sh scripts to ease running on platforms where bash is not in /bin/bash (ex: MacOS). --- .ci.gofmt.sh | 2 +- .ci.gogenerate.sh | 2 +- .ci.govet.sh | 2 +- .ci.readme.fmt.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.ci.gofmt.sh b/.ci.gofmt.sh index 3f2e5d329..1ac21ef10 100755 --- a/.ci.gofmt.sh +++ b/.ci.gofmt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -n "$(gofmt -l .)" ]; then echo "Go code is not formatted:" diff --git a/.ci.gogenerate.sh b/.ci.gogenerate.sh index 3fc73fea7..5b5642094 100755 --- a/.ci.gogenerate.sh +++ b/.ci.gogenerate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # If GOMOD is defined we are running with Go Modules enabled, either # automatically or via the GO111MODULE=on environment variable. Codegen only diff --git a/.ci.govet.sh b/.ci.govet.sh index 77aeb5c47..9bdf4519b 100755 --- a/.ci.govet.sh +++ b/.ci.govet.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/.ci.readme.fmt.sh b/.ci.readme.fmt.sh index 045cb5fb0..b3d6a1d06 100755 --- a/.ci.readme.fmt.sh +++ b/.ci.readme.fmt.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Verify that the code snippets in README.md are formatted. # The tool https://github.com/hougesen/mdsf is used.