scripts: use env to invoke bash
PATCH 1/1 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
--- scripts/carray.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/carray.sh +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function usage() {
Signature · 1 line
2.38.1
PATCH 1/1 scripts: use env to invoke bash
? 2022-12-08???? 19:08 +0530?Himanshu Chauhan???
Quoted 7 lines
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]>
scripts/d2c.sh and scripts/create-binary-archive.sh also need the same modification.
Regards,
Xiang W
Quoted 18 lines
---
?scripts/carray.sh | 2 +-
?1 file changed, 1 insertion(+), 1 deletion(-)scripts/carray.sh +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash?
?functionusage()
?{Signature · 1 line
2.38.1