summaryrefslogtreecommitdiff
path: root/test-ca
diff options
context:
space:
mode:
authorDaniel McCarney <daniel@binaryparadox.net>2023-03-01 10:17:38 -0500
committerDirkjan Ochtman <dirkjan@ochtman.nl>2023-03-02 10:28:10 +0100
commit44bac99c6e3ca1274e2faa33354823f8c3b6eddd (patch)
tree154b2ef5cca3179890b96ebbd8843c2eb701d2dd /test-ca
parent8e319df43dab7ae9fa06d67c02d48bf709f56410 (diff)
fix: avoid hardcoded (ba)sh path in helper scripts.
Prior to this commit some helper scripts used hardcoded paths to `/bin/sh` and `/bin/bash` in script shebangs. This will error on systems that don't place `bash` in `/bin/` (e.g. NixOS). This commit updates the scripts to use `/usr/bin/env` to find `bash` based on the user's `$PATH`. This has better portability and allows the scripts to run without err (or specifying an interpreter explicitly) on systems with atypical `bash` installs.
Diffstat (limited to 'test-ca')
-rwxr-xr-xtest-ca/build-a-pki.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-ca/build-a-pki.sh b/test-ca/build-a-pki.sh
index e9738945..f40b34f8 100755
--- a/test-ca/build-a-pki.sh
+++ b/test-ca/build-a-pki.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
set -xe