Skip to content

Commit db07ab1

Browse files
Change '/bin/bash' shebangs to '/usr/bin/env bash'
This improves portability across different unix-like operating systems by using bash from the PATH, instead of bash from a hardcoded location. Signed-off-by: Harry Callahan <[email protected]>
1 parent 71a1fc6 commit db07ab1

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

ci/install-build-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright lowRISC contributors.
33
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
44
# SPDX-License-Identifier: Apache-2.0

ci/run-cosim-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Copyright lowRISC contributors.
33
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
44
# SPDX-License-Identifier: Apache-2.0

dv/uvm/core_ibex/scripts/objdump.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
_GET_OBJS=$(find ./out/run -type f -iregex '.*test\.o')
33
if [[ -z "${RISCV_TOOLCHAIN}" ]]; then
44
echo "Please define RISCV_TOOLCHAIN to have access to objdump."

dv/uvm/core_ibex/scripts/prettify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
_GET_TRACES=$(find . -type f -iregex '.*trace_core.*\.log')
33
for trace in $_GET_TRACES; do
44
column -t -s $'\t' -o ' ' -R 1,2,3,4,5 "$trace" > "$(dirname "$trace")"/trace_pretty.log

examples/simple_system/spike-simple-system.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -u
44
set -e

syn/lec_sv2v.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Copyright lowRISC contributors.
44
# Licensed under the Apache License, Version 2.0, see LICENSE for details.

syn/python/build_translated_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
# Copyright lowRISC contributors.
44
# Licensed under the Apache License, Version 2.0, see LICENSE for details.

syn/python/get_kge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
# Copyright lowRISC contributors.
44
# Licensed under the Apache License, Version 2.0, see LICENSE for details.

syn/python/translate_timing_csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
# Copyright lowRISC contributors.
44
# Licensed under the Apache License, Version 2.0, see LICENSE for details.

syn/syn_setup.example.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Copyright lowRISC contributors.
44
# Licensed under the Apache License, Version 2.0, see LICENSE for details.

0 commit comments

Comments
 (0)