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>
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"
-#!/bin/bash
+#!/usr/bin/env bash
gitroot=$(git rev-parse --show-toplevel)
-#!/bin/bash
+#!/usr/bin/env bash
# Just call post-checkout since it does the same thing.
gitroot=$(git rev-parse --git-path hooks)
-#!/bin/sh
+#!/usr/bin/env bash
cp 0A.yml out.yml
../bin/Debug/net5.0/Content.Tools out.yml 0B.yml 0C.yml
-#!/bin/sh
+#!/usr/bin/env bash
# Add this to .git/config:
# [merge "mapping-merge-driver"]
-#!/bin/sh
+#!/usr/bin/env bash
dotnet run --project Content.Client --configuration Tools
read -p "Press enter to continue"
-#!/bin/sh
+#!/usr/bin/env bash
dotnet run --project Content.Client
read -p "Press enter to continue"
-#!/bin/sh
+#!/usr/bin/env bash
dotnet run --project Content.Server --configuration Tools
read -p "Press enter to continue"
-#!/bin/sh
+#!/usr/bin/env bash
dotnet run --project Content.Server
read -p "Press enter to continue"