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
This commit is contained in:
vigress8 2024-06-24 23:28:36 +04:00 committed by Jade Lovelace
parent d86009bd76
commit c7af89c797
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

@ -304,6 +304,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