summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHimanshu Chauhan <[email protected]>2022-12-09 11:43:35 +0530
committerAnup Patel <[email protected]>2022-12-10 22:00:27 +0530
commit506928a1be9952abc52f05c0c661338aa1d66f6d (patch)
tree68b242cf50be2d7336a95c217ff0377aced2d826 /scripts
parentcb568b9b294d5b20f7dd416e89b61c8bf0fa375d (diff)
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 <[email protected]> Reviewed-by: Xiang W <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/carray.sh2
-rwxr-xr-xscripts/create-binary-archive.sh2
-rwxr-xr-xscripts/d2c.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/scripts/carray.sh b/scripts/carray.sh
index 0c52bd6f..13f9d360 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 4dda7b4b..9d56f2f4 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 33a3ccf7..c411fcda 100755
--- a/scripts/d2c.sh
+++ b/scripts/d2c.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
function usage()
{