Skip to content

Commit

Permalink
tests: /bin/bash -> /usr/bin/env bash (sigstore#1470)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
znewman01 authored and Marc Hildenbrand committed Apr 19, 2022
1 parent e3d0981 commit 3cf0412
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright 2021 The Sigstore Authors.
#
Expand Down
2 changes: 1 addition & 1 deletion test/e2e_test_cosigned.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright 2021 The Sigstore Authors.
#
Expand Down
2 changes: 1 addition & 1 deletion test/e2e_test_insecure_registry.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright 2021 The Sigstore Authors.
#
Expand Down
2 changes: 1 addition & 1 deletion test/e2e_test_secrets.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright 2021 The Sigstore Authors.
#
Expand Down

0 comments on commit 3cf0412

Please sign in to comment.