Make shell scripts more portable by using /usr/bin/env bash

This commit is contained in:
Jonathan "Duke" Leto
2022-09-19 16:30:39 -07:00
parent 86a2c1c73c
commit 2a8dbbad7b
39 changed files with 44 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2016-2022 The Hush developers
set -eo pipefail
hush_cli='./hush-cli'

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2016-2022 The Hush developers
# Distributed under the GPLv3 software license, see the accompanying
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2016-2022 The Hush developers
# Released under the GPLv3

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2018-2020 The Hush developers
#set working directory to the location of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

View File

@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2018-2020 The Hush developers
./hush-smart-chain -ac_name=KOOLAID $@

View File

@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2018-2020 The Hush developers
./hush-smart-chain -ac_name=KUSH $@

View File

@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2018-2020 The Hush developers
./hush-smart-chain -ac_name=ZEX $@

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2018-2022 The Hush developers
set -eo pipefail

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2018-2020 The Hush developers
set -x
delay=60

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2016-2022 The Hush developers
# set working directory to the location of this script

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright (c) 2016-2022 The Hush developers
# set working directory to the location of this script