From 7a44d7781b29f08375a23c9aad2c9ed395692c9d Mon Sep 17 00:00:00 2001 From: Zachary Newman Date: Wed, 16 Feb 2022 11:18:44 -0600 Subject: [PATCH] tests: `/bin/bash` -> `/usr/bin/env bash` This uses `bash` from the user's `$PATH`, which is (usually) preferable to hardcoding a particular `bash` location: https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my Selfishly, without this change these scripts don't work on NixOS. Signed-off-by: Zachary Newman --- test/e2e_test.sh | 2 +- test/e2e_test_cosigned.sh | 2 +- test/e2e_test_insecure_registry.sh | 2 +- test/e2e_test_secrets.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e_test.sh b/test/e2e_test.sh index b480e65e755..d8df804bdc0 100755 --- a/test/e2e_test.sh +++ b/test/e2e_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2021 The Sigstore Authors. # diff --git a/test/e2e_test_cosigned.sh b/test/e2e_test_cosigned.sh index 45bcd8f6554..7a0b5b5799f 100755 --- a/test/e2e_test_cosigned.sh +++ b/test/e2e_test_cosigned.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2021 The Sigstore Authors. # diff --git a/test/e2e_test_insecure_registry.sh b/test/e2e_test_insecure_registry.sh index 1b2b15903c8..42ee89c982d 100755 --- a/test/e2e_test_insecure_registry.sh +++ b/test/e2e_test_insecure_registry.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2021 The Sigstore Authors. # diff --git a/test/e2e_test_secrets.sh b/test/e2e_test_secrets.sh index fa0ca436027..951d79ba7d1 100755 --- a/test/e2e_test_secrets.sh +++ b/test/e2e_test_secrets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2021 The Sigstore Authors. #