From 1c733e8c1957dc67f47580fe9c458a13b5612d5b Mon Sep 17 00:00:00 2001 From: Lorentz Lasson Date: Mon, 2 Jun 2025 01:21:07 +0200 Subject: [PATCH] chore: use portable shebangs consistently (#3141) use portable shebangs consistently --- .hooks/pre-commit.sh | 2 +- scripts/doc-comments.sh | 2 +- scripts/help-update.sh | 2 +- scripts/luals-check.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.hooks/pre-commit.sh b/.hooks/pre-commit.sh index 5b139ec3..9e89e957 100755 --- a/.hooks/pre-commit.sh +++ b/.hooks/pre-commit.sh @@ -1,3 +1,3 @@ -#!/bin/sh +#!/usr/bin/env sh make diff --git a/scripts/doc-comments.sh b/scripts/doc-comments.sh index c31bbeae..2b49e809 100755 --- a/scripts/doc-comments.sh +++ b/scripts/doc-comments.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash out=$(grep -nr "^--- @" lua) diff --git a/scripts/help-update.sh b/scripts/help-update.sh index 474e259d..b888e61c 100755 --- a/scripts/help-update.sh +++ b/scripts/help-update.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # run after changing nvim-tree.lua DEFAULT_OPTS or keymap.lua M.default_on_attach # scrapes and updates nvim-tree-lua.txt diff --git a/scripts/luals-check.sh b/scripts/luals-check.sh index 0a6de31d..9d1e31f3 100755 --- a/scripts/luals-check.sh +++ b/scripts/luals-check.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Performs a lua-language-server check on all files. # luals-out/check.json will be produced on any issues, returning 1.