Replace all usages of /bin/bash shebang with /usr/bin/env (#40756)
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>
This commit is contained in:
@@ -13,7 +13,7 @@ from typing import List
|
|||||||
|
|
||||||
SOLUTION_PATH = Path("..") / "SpaceStation14.sln"
|
SOLUTION_PATH = Path("..") / "SpaceStation14.sln"
|
||||||
# If this doesn't match the saved version we overwrite them all.
|
# 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"
|
QUIET = len(sys.argv) == 2 and sys.argv[1] == "--quiet"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
gitroot=$(git rev-parse --show-toplevel)
|
gitroot=$(git rev-parse --show-toplevel)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Just call post-checkout since it does the same thing.
|
# Just call post-checkout since it does the same thing.
|
||||||
gitroot=$(git rev-parse --git-path hooks)
|
gitroot=$(git rev-parse --git-path hooks)
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
cp 0A.yml out.yml
|
cp 0A.yml out.yml
|
||||||
../bin/Debug/net5.0/Content.Tools out.yml 0B.yml 0C.yml
|
../bin/Debug/net5.0/Content.Tools out.yml 0B.yml 0C.yml
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Add this to .git/config:
|
# Add this to .git/config:
|
||||||
# [merge "mapping-merge-driver"]
|
# [merge "mapping-merge-driver"]
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
dotnet run --project Content.Client --configuration Tools
|
dotnet run --project Content.Client --configuration Tools
|
||||||
read -p "Press enter to continue"
|
read -p "Press enter to continue"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
dotnet run --project Content.Client
|
dotnet run --project Content.Client
|
||||||
read -p "Press enter to continue"
|
read -p "Press enter to continue"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
dotnet run --project Content.Server --configuration Tools
|
dotnet run --project Content.Server --configuration Tools
|
||||||
read -p "Press enter to continue"
|
read -p "Press enter to continue"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
dotnet run --project Content.Server
|
dotnet run --project Content.Server
|
||||||
read -p "Press enter to continue"
|
read -p "Press enter to continue"
|
||||||
|
|||||||
Reference in New Issue
Block a user