From 7a9db35c79734237d6db77e87f5844093c80ba01 Mon Sep 17 00:00:00 2001 From: cbarber Date: Thu, 1 Jan 2026 13:54:22 -0500 Subject: [PATCH] Fix shebang env (#817) * fix: use /usr/bin/env to PATH search sh (nixos compatiblity) * fix: reconcile repo hooks with template /usr/bin/env change --- .beads-hooks/post-checkout | 2 +- .beads-hooks/post-merge | 2 +- .beads-hooks/pre-commit | 2 +- .beads-hooks/pre-push | 2 +- cmd/bd/templates/hooks/post-checkout | 2 +- cmd/bd/templates/hooks/post-merge | 2 +- cmd/bd/templates/hooks/pre-commit | 2 +- cmd/bd/templates/hooks/pre-push | 2 +- cmd/bd/templates/hooks/prepare-commit-msg | 2 +- examples/git-hooks/post-checkout | 2 +- examples/git-hooks/post-merge | 2 +- examples/git-hooks/pre-commit | 2 +- examples/git-hooks/pre-push | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.beads-hooks/post-checkout b/.beads-hooks/post-checkout index 8a9a4d70..fc852f7e 100755 --- a/.beads-hooks/post-checkout +++ b/.beads-hooks/post-checkout @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-hooks-version: 0.25.1 # # bd (beads) post-checkout hook diff --git a/.beads-hooks/post-merge b/.beads-hooks/post-merge index 6b06ea80..584d5e33 100755 --- a/.beads-hooks/post-merge +++ b/.beads-hooks/post-merge @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-hooks-version: 0.25.1 # # bd (beads) post-merge hook diff --git a/.beads-hooks/pre-commit b/.beads-hooks/pre-commit index ea232256..73619b45 100755 --- a/.beads-hooks/pre-commit +++ b/.beads-hooks/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-hooks-version: 0.29.0 # # bd (beads) pre-commit hook diff --git a/.beads-hooks/pre-push b/.beads-hooks/pre-push index 58408e6a..97497c26 100755 --- a/.beads-hooks/pre-push +++ b/.beads-hooks/pre-push @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-hooks-version: 0.24.2 # # bd (beads) pre-push hook diff --git a/cmd/bd/templates/hooks/post-checkout b/cmd/bd/templates/hooks/post-checkout index 6d5b2d25..d5015df5 100755 --- a/cmd/bd/templates/hooks/post-checkout +++ b/cmd/bd/templates/hooks/post-checkout @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-shim v1 # bd-hooks-version: 0.42.0 # diff --git a/cmd/bd/templates/hooks/post-merge b/cmd/bd/templates/hooks/post-merge index 6ebb8539..4719ab71 100755 --- a/cmd/bd/templates/hooks/post-merge +++ b/cmd/bd/templates/hooks/post-merge @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-shim v1 # bd-hooks-version: 0.42.0 # diff --git a/cmd/bd/templates/hooks/pre-commit b/cmd/bd/templates/hooks/pre-commit index 07a574b7..92f19b00 100755 --- a/cmd/bd/templates/hooks/pre-commit +++ b/cmd/bd/templates/hooks/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-shim v1 # bd-hooks-version: 0.42.0 # diff --git a/cmd/bd/templates/hooks/pre-push b/cmd/bd/templates/hooks/pre-push index 3bfefe24..f9f27415 100755 --- a/cmd/bd/templates/hooks/pre-push +++ b/cmd/bd/templates/hooks/pre-push @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-shim v1 # bd-hooks-version: 0.42.0 # diff --git a/cmd/bd/templates/hooks/prepare-commit-msg b/cmd/bd/templates/hooks/prepare-commit-msg index 4aac499e..e6caceeb 100755 --- a/cmd/bd/templates/hooks/prepare-commit-msg +++ b/cmd/bd/templates/hooks/prepare-commit-msg @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-shim v1 # bd-hooks-version: 0.41.0 # diff --git a/examples/git-hooks/post-checkout b/examples/git-hooks/post-checkout index b24d8b99..26dee8c3 100755 --- a/examples/git-hooks/post-checkout +++ b/examples/git-hooks/post-checkout @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-hooks-version: 0.26.0 # # bd (beads) post-checkout hook diff --git a/examples/git-hooks/post-merge b/examples/git-hooks/post-merge index 5175e378..d03b7028 100755 --- a/examples/git-hooks/post-merge +++ b/examples/git-hooks/post-merge @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-hooks-version: 0.26.0 # # bd (beads) post-merge hook diff --git a/examples/git-hooks/pre-commit b/examples/git-hooks/pre-commit index 14f0617e..3fa05ee9 100755 --- a/examples/git-hooks/pre-commit +++ b/examples/git-hooks/pre-commit @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-hooks-version: 0.29.0 # # bd (beads) pre-commit hook diff --git a/examples/git-hooks/pre-push b/examples/git-hooks/pre-push index 7f7b7e21..7c5f4850 100755 --- a/examples/git-hooks/pre-push +++ b/examples/git-hooks/pre-push @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # bd-hooks-version: 0.22.2 # # bd (beads) pre-push hook