Compare commits

..

2 commits

Author SHA1 Message Date
jade 4ac2c496d4 Merge "change shebangs of all .sh scripts to bash" into main 2024-06-25 22:18:26 +00:00
vigress8 c7af89c797 change shebangs of all .sh scripts to bash
On operating systems where /bin/sh is not Bash, some scripts are invalid
because of bashisms, and building Lix fails with errors like this:
`render-manpage.sh: 3: set: Illegal option -o pipefail`
This modifies all scripts that use a `/bin/sh` shebang to `/usr/bin/env
bash`, including currently POSIX-compliant ones, to prevent any future
confusion.

Change-Id: Ia074cc6db42d40fc59a63726f6194ea0149ea5e0
2024-06-24 14:00:43 -07:00
8 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
set -euo pipefail

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
set -euo pipefail

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
# Generates a report of build time based on a meson build using -ftime-trace in
# Clang.

View file

@ -302,6 +302,9 @@ stdenv.mkDerivation (finalAttrs: {
else
appendToVar configureFlags "--disable-tests"
fi
# Fix up /usr/bin/env shebangs relied on by the build
patchShebangs --build tests/ doc/manual/
'';
mesonBuildType = "debugoptimized";

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
set -eux

View file

@ -1,3 +1,3 @@
#!/bin/sh
#!/usr/bin/env bash
exec nix-daemon --force-untrusted "$@"

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
set -x
set -e

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
set -x
set -e