scripts: use env to invoke bash
authorHimanshu Chauhan <hchauhan@ventanamicro.com>
Fri, 9 Dec 2022 06:13:35 +0000 (11:43 +0530)
committerAnup Patel <anup@brainfault.org>
Sat, 10 Dec 2022 16:30:27 +0000 (22:00 +0530)
commit506928a1be9952abc52f05c0c661338aa1d66f6d
tree68b242cf50be2d7336a95c217ff0377aced2d826
parentcb568b9b294d5b20f7dd416e89b61c8bf0fa375d
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 <hchauhan@ventanamicro.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
scripts/carray.sh
scripts/create-binary-archive.sh
scripts/d2c.sh