From 506928a1be9952abc52f05c0c661338aa1d66f6d Mon Sep 17 00:00:00 2001 From: Himanshu Chauhan Date: Fri, 9 Dec 2022 11:43:35 +0530 Subject: [PATCH] scripts: use env to invoke bash Not all systems have bash at a fixed location like /bin/bash. FreeBSD, for example, would typically have it at /usr/local/bin/bash. When building OpenSBI on freebsd system, the build breaks. Its advisable to use: #!/usr/bin/env bash Signed-off-by: Himanshu Chauhan Reviewed-by: Xiang W Reviewed-by: Anup Patel --- scripts/carray.sh | 2 +- scripts/create-binary-archive.sh | 2 +- scripts/d2c.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/carray.sh b/scripts/carray.sh index 0c52bd6..13f9d36 100755 --- a/scripts/carray.sh +++ b/scripts/carray.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function usage() { diff --git a/scripts/create-binary-archive.sh b/scripts/create-binary-archive.sh index 4dda7b4..9d56f2f 100755 --- a/scripts/create-binary-archive.sh +++ b/scripts/create-binary-archive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function usage() { diff --git a/scripts/d2c.sh b/scripts/d2c.sh index 33a3ccf..c411fcd 100755 --- a/scripts/d2c.sh +++ b/scripts/d2c.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function usage() { -- 2.7.4