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 2020-12-11 20:05:42 +01:00
parent d42d0faf41
commit 8c57c7cb35
6 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash
#------------------------------------------------------------------------------
# Bash script to execute the Solidity tests by CircleCI.
#

View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# ------------------------------------------------------------------------------
# vim:ts=4:et
# This file is part of solidity.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
set -e

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
BASE_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 || exit ; pwd -P )"
mkdir -p build

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
set -e
TEMPDIR=$(mktemp -d)

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
REPO="$(dirname "$0")/.."