From 384264142c93d5f47340fb91fd0a7fa851f5630f Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 13 Aug 2020 15:37:57 +0200 Subject: [PATCH] use env bash shebangs for portability (#11) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- README.md | 2 +- scripts/add_submodule.sh | 2 +- scripts/build_nim.sh | 2 +- scripts/build_p2pd.sh | 2 +- scripts/build_rocksdb.sh | 2 +- scripts/create_nimble_link.sh | 2 +- scripts/env.sh | 2 +- scripts/git_show_deps.sh | 2 +- scripts/nimble.sh | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 556c031..a45a69a 100644 --- a/README.md +++ b/README.md @@ -334,7 +334,7 @@ necessary for using this build system. It's being sourced by a script with the same name in the superproject's top directory: ```bash -#!/bin/bash +#!/usr/bin/env bash # We use ${BASH_SOURCE[0]} instead of $0 to allow sourcing this file # and we fall back to a Zsh-specific special var to also support Zsh. diff --git a/scripts/add_submodule.sh b/scripts/add_submodule.sh index d4b24e9..fe8a9dd 100755 --- a/scripts/add_submodule.sh +++ b/scripts/add_submodule.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/scripts/build_nim.sh b/scripts/build_nim.sh index ed1049f..1e2a38f 100755 --- a/scripts/build_nim.sh +++ b/scripts/build_nim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # used in Travis CI and AppVeyor scripts # Copyright (c) 2018-2020 Status Research & Development GmbH. Licensed under diff --git a/scripts/build_p2pd.sh b/scripts/build_p2pd.sh index 5a24577..173b0ec 100755 --- a/scripts/build_p2pd.sh +++ b/scripts/build_p2pd.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/scripts/build_rocksdb.sh b/scripts/build_rocksdb.sh index e4ae051..594f505 100755 --- a/scripts/build_rocksdb.sh +++ b/scripts/build_rocksdb.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # used in Travis CI scripts # Copyright (c) 2018-2020 Status Research & Development GmbH. Licensed under diff --git a/scripts/create_nimble_link.sh b/scripts/create_nimble_link.sh index a0da6ee..cdf8085 100755 --- a/scripts/create_nimble_link.sh +++ b/scripts/create_nimble_link.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/env.sh b/scripts/env.sh index 2703a1f..341d54f 100755 --- a/scripts/env.sh +++ b/scripts/env.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/git_show_deps.sh b/scripts/git_show_deps.sh index 731143f..e837125 100755 --- a/scripts/git_show_deps.sh +++ b/scripts/git_show_deps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/scripts/nimble.sh b/scripts/nimble.sh index e206296..933b293 100755 --- a/scripts/nimble.sh +++ b/scripts/nimble.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (c) 2018-2019 Status Research & Development GmbH. Licensed under # either of: