From a80f65c1a6e862d27fa9491b5174a9203d763a2e Mon Sep 17 00:00:00 2001
From: aiyion <git@aiyionpri.me>
Date: Fri, 16 May 2025 14:03:29 +0200
Subject: [PATCH] scripts: Alter shebangs to /usr/bin/env bash

in order to increase portability across systems where /bin/ does not contain bash.
---
 contrib/actions/free-runner-space.sh | 2 +-
 contrib/actions/show-system-info.sh  | 2 +-
 contrib/depdot.sh                    | 2 +-
 contrib/lsupgrade.sh                 | 2 +-
 scripts/feeds.sh                     | 2 +-
 scripts/module_check.sh              | 2 +-
 scripts/patch.sh                     | 2 +-
 scripts/update-patches.sh            | 2 +-
 scripts/update.sh                    | 2 +-
 9 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/contrib/actions/free-runner-space.sh b/contrib/actions/free-runner-space.sh
index a3dd69d44..7969f8614 100755
--- a/contrib/actions/free-runner-space.sh
+++ b/contrib/actions/free-runner-space.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # For a List of pre-installed packages on the runner image see
 # https://github.com/actions/runner-images/tree/main?tab=readme-ov-file#available-images
diff --git a/contrib/actions/show-system-info.sh b/contrib/actions/show-system-info.sh
index 5e449e091..d067a4c88 100755
--- a/contrib/actions/show-system-info.sh
+++ b/contrib/actions/show-system-info.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 echo "-- CPU --"
 cat /proc/cpuinfo
diff --git a/contrib/depdot.sh b/contrib/depdot.sh
index 36fbe496b..af7817ef6 100755
--- a/contrib/depdot.sh
+++ b/contrib/depdot.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Script to output the dependency graph of Gluon's packages
 # Limitations:
diff --git a/contrib/lsupgrade.sh b/contrib/lsupgrade.sh
index 284fe44be..37ef73431 100755
--- a/contrib/lsupgrade.sh
+++ b/contrib/lsupgrade.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 # Script to list all upgrade scripts in a clear manner
diff --git a/scripts/feeds.sh b/scripts/feeds.sh
index d4b7d6d12..1442d66aa 100755
--- a/scripts/feeds.sh
+++ b/scripts/feeds.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
diff --git a/scripts/module_check.sh b/scripts/module_check.sh
index 8199f49ca..1512e46dc 100755
--- a/scripts/module_check.sh
+++ b/scripts/module_check.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
diff --git a/scripts/patch.sh b/scripts/patch.sh
index a91347434..538273527 100755
--- a/scripts/patch.sh
+++ b/scripts/patch.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # shellcheck enable=check-unassigned-uppercase
 
 set -e
diff --git a/scripts/update-patches.sh b/scripts/update-patches.sh
index 9776e4bb0..7a6d035e7 100755
--- a/scripts/update-patches.sh
+++ b/scripts/update-patches.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # shellcheck enable=check-unassigned-uppercase
 
 set -e
diff --git a/scripts/update.sh b/scripts/update.sh
index 365e86c2e..e7843deee 100755
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
-- 
GitLab