Support NixOS and others non-FHS Linux distros
As it expects Bash to be at `/bin/bash`, the current implementation fails to execute on NixOS, given that there bash is in a non-standard path (i.g. `/nix/store/<hash>-bash-interactive-<version>/bin/bash`). This patch specifically changes `/bin/bash` paths to use `/usr/bin/env bash`, which should give the correct path in every Unix system. Signed-off-by: Luis Holanda <luiscmholanda@gmail.com>
This commit is contained in:
parent
c122a0d1c7
commit
c4125cf13b
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ def toolchains(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
ZIG_TOOL_WRAPPER = """#!/bin/bash
|
ZIG_TOOL_WRAPPER = """#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ -n "$TMPDIR" ]]; then
|
if [[ -n "$TMPDIR" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user