]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Replace all usages of /bin/bash shebang with /usr/bin/env (#40756)
authoropl- <opl-@users.noreply.github.com>
Sun, 12 Oct 2025 19:49:41 +0000 (21:49 +0200)
committerGitHub <noreply@github.com>
Sun, 12 Oct 2025 19:49:41 +0000 (19:49 +0000)
Replace all usages of /bin/bash with /usr/bin/env

/usr/bin/env is nearly guaranteed to always exist at that location, which can't be said about /bin/bash and /bin/sh.

Co-authored-by: opl <4833621+opl@users.noreply.github.com>
BuildChecker/git_helper.py
BuildChecker/hooks/post-checkout
BuildChecker/hooks/post-merge
Content.Tools/test/run.sh
Tools/mapping-merge-driver.sh
runclient-Tools.sh
runclient.sh
runserver-Tools.sh
runserver.sh

index 66d2463669dbf2f06a440d08e60f11981d5f6896..bd6603bd344d25f3a065dd9470f20690ece47baa 100644 (file)
@@ -13,7 +13,7 @@ from typing import List
 
 SOLUTION_PATH = Path("..") / "SpaceStation14.sln"
 # If this doesn't match the saved version we overwrite them all.
-CURRENT_HOOKS_VERSION = "3"
+CURRENT_HOOKS_VERSION = "4"
 QUIET = len(sys.argv) == 2 and sys.argv[1] == "--quiet"
 
 
index ee4309de1dad5140010d735de3372fc1f67d28cd..1b91112ff0d5d25f96c9c9f24c2a4f5edf4e9f43 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 gitroot=$(git rev-parse --show-toplevel)
 
index 5cf3d91120d54c822a480c3803899d76352124b5..864a9cff504ca01b499b6b5856293fa5b0a6a816 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Just call post-checkout since it does the same thing.
 gitroot=$(git rev-parse --git-path hooks)
index 7809b4dc92af305dd42c3d17db95fa2214d2ba00..876325ba56c7fe8499cb537777672547ee3683e8 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env bash
 cp 0A.yml out.yml
 ../bin/Debug/net5.0/Content.Tools out.yml 0B.yml 0C.yml
index 0421278f311220071cc09247f015a522192be4ee..fe114ac9cdf5de68883a9ecbf594dedee613e8cd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
 # Add this to .git/config:
 # [merge "mapping-merge-driver"]
index cc0c958b86265bf65b7508611f9132cae927a6ad..b564c35438eae20e850c3c113dc09ba1675480da 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env bash
 dotnet run --project Content.Client --configuration Tools
 read -p "Press enter to continue"
index 9417cc9218a9823261ad63fe2e4f6aebc0651a4d..5df80bb08eab1f02fbc8335736bd6f052e08478e 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env bash
 dotnet run --project Content.Client
 read -p "Press enter to continue"
index 6280dc4279bc84f81f6beeebb0409dc710daf2e8..3a786920a74e3bf75efd9677dc152e76c0c711fb 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env bash
 dotnet run --project Content.Server --configuration Tools
 read -p "Press enter to continue"
index 33258e3190a3a68cc54dd4544391e8eb0f7eadc0..33638d6bb5f0b497bbfb67246fed9c5711e749b4 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env bash
 dotnet run --project Content.Server
 read -p "Press enter to continue"