From 6ccbc1787bc0e1673575dc40eb3645027c6eab8e Mon Sep 17 00:00:00 2001 From: Lorentz Lasson Date: Sat, 31 May 2025 15:59:01 +0200 Subject: [PATCH] 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 5b139ec3263..9e89e95700c 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 c31bbeaef44..2b49e8099a0 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 474e259d700..b888e61cd33 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 0a6de31d2cd..9d1e31f395f 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.