Explicitly use Bash in scripts that actually use non-POSIX features or do not have a shebang at all

This commit is contained in:
Kamil Śliwak
2021-03-04 16:53:05 +01:00
parent d42d0faf41
commit 8c57c7cb35
6 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash
#------------------------------------------------------------------------------
# Bash script to execute the Solidity tests by CircleCI.
#
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
# ------------------------------------------------------------------------------
# vim:ts=4:et
# This file is part of solidity.
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
set -e
@@ -1,3 +1,5 @@
#!/usr/bin/env bash
BASE_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 || exit ; pwd -P )"
mkdir -p build
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
set -e
TEMPDIR=$(mktemp -d)
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
REPO="$(dirname "$0")/.."