From 1ffd7cb5bbf1920ac6b51f39e7e2df59b7a787a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Fri, 16 Apr 2021 16:28:11 +0200 Subject: [PATCH] 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. --- test/link/test.sh | 2 +- test/run-tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/link/test.sh b/test/link/test.sh index 9ad7d1bb..e47d3c51 100755 --- 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 diff --git a/test/run-tests.sh b/test/run-tests.sh index ebe84658..55bd655c 100755 --- 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