From 51f967a5486edbd90c18ba54609600eb5b234ba2 Mon Sep 17 00:00:00 2001 From: asymmetric Date: Fri, 8 Jan 2021 12:29:43 +0200 Subject: [PATCH] scripts: make shebang more portable (#2216) Some Linux distros (like NixOS) don't place bash in /bin/bash. --- scripts/copyfile.sh | 2 +- scripts/make_prometheus_config.sh | 2 +- scripts/makedir.sh | 2 +- wasm/build.sh | 2 +- wasm/build_ncli.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/copyfile.sh b/scripts/copyfile.sh index 186344458..5729a3693 100755 --- a/scripts/copyfile.sh +++ b/scripts/copyfile.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2018-2019 Status Research & Development GmbH. Licensed under # either of: diff --git a/scripts/make_prometheus_config.sh b/scripts/make_prometheus_config.sh index dfcfecf32..3c7021520 100755 --- a/scripts/make_prometheus_config.sh +++ b/scripts/make_prometheus_config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2020 Status Research & Development GmbH. Licensed under # either of: diff --git a/scripts/makedir.sh b/scripts/makedir.sh index 46e8b25dc..7e66b3550 100755 --- a/scripts/makedir.sh +++ b/scripts/makedir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2018-2020 Status Research & Development GmbH. Licensed under # either of: diff --git a/wasm/build.sh b/wasm/build.sh index 626cb07d2..2aa8612cf 100755 --- a/wasm/build.sh +++ b/wasm/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Simple build script to produce an Emscripten-based wasm version of the state # sim. diff --git a/wasm/build_ncli.sh b/wasm/build_ncli.sh index 9199d86a2..f75efebd6 100755 --- a/wasm/build_ncli.sh +++ b/wasm/build_ncli.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Simple build script to produce an Emscripten-based wasm version of the state # sim.