ref: 1ffd7cb5bbf1920ac6b51f39e7e2df59b7a787a7
parent: 215e26b478c1cbf5a5d5dd86e7ee027072acaaac
author: Jakub Kądziołka <kuba@kadziolka.net>
date: Fri Apr 16 12:28:11 EDT 2021
Make tests work on NixOS Some distributions, such as NixOS and Guix, only have the /bin/sh and /usr/bin/env binaries in standard locations.
--- a/test/link/test.sh
+++ b/test/link/test.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
export LC_ALL=C
set -o pipefail
--- a/test/run-tests.sh
+++ b/test/run-tests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Return failure as soon as a command fails to execute