Skip to content

Commit d3468e6

Browse files
author
Corin Lawson
committed
Prefer /usr/bin/env in shebang line
Not all systems have /bin/bash available (mine among them). This change makes use of /usr/bin/env in place of /bin/bash.
1 parent c3162dc commit d3468e6

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

cmd/postgres_exporter/tests/test-smoke

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#!/bin/bash -x
1+
#!/usr/bin/env bash
22
# Basic integration tests with postgres. Requires docker to work.
3+
set -x
34

45
SOURCE="${BASH_SOURCE[0]}"
56
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink

gh-assets-clone.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
# Script to setup the assets clone of the repository using GIT_ASSETS_BRANCH and
33
# GIT_API_KEY.
44

gh-metrics-push.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
# Script to copy and push new metric versions to the assets branch.
33

44
[ ! -z "$GIT_ASSETS_BRANCH" ] || exit 1

postgres-metrics-get-changes.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
# Script to parse a text exposition format file into a unique list of metrics
33
# output by the exporter and then build lists of added/removed metrics.
44

postgres_exporter_integration_test_script

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# This script wraps the integration test binary so it produces concatenated
33
# test output.
4+
set -x
45

56
test_binary=$1
67
shift

0 commit comments

Comments
 (0)