From 96667280ec7f06c6dc5ef7b72ea2f987b8f041e3 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Thu, 24 Oct 2024 20:31:02 +0200 Subject: [PATCH] Use env to detect bash. --- bin/create_agent_keypair | 2 +- hooks/environment.agent | 2 +- hooks/post-checkout | 2 +- hooks/post-command | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/create_agent_keypair b/bin/create_agent_keypair index 5215ba3..5706dbf 100755 --- a/bin/create_agent_keypair +++ b/bin/create_agent_keypair @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## This script creates an "agent keypair". The private key is stored on an agent, and is used to ## encrypt/decrypt a per-repository symmetric key. diff --git a/hooks/environment.agent b/hooks/environment.agent index 51d3e10..13433af 100755 --- a/hooks/environment.agent +++ b/hooks/environment.agent @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -eou pipefail diff --git a/hooks/post-checkout b/hooks/post-checkout index 0713efd..d8f1174 100755 --- a/hooks/post-checkout +++ b/hooks/post-checkout @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## post-checkout hook: This hook performs the actual decryption of secrets diff --git a/hooks/post-command b/hooks/post-command index f9014ad..65488f7 100755 --- a/hooks/post-command +++ b/hooks/post-command @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## post-command hook: This hook implements treehash verification and pipeline launching