Skip to content

Commit af716f8

Browse files
committed
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).
1 parent 9fc264e commit af716f8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.ci.gofmt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
if [ -n "$(gofmt -l .)" ]; then
44
echo "Go code is not formatted:"

.ci.gogenerate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# If GOMOD is defined we are running with Go Modules enabled, either
44
# automatically or via the GO111MODULE=on environment variable. Codegen only

.ci.govet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

.ci.readme.fmt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Verify that the code snippets in README.md are formatted.
44
# The tool https://github.com/hougesen/mdsf is used.

0 commit comments

Comments
 (0)