Skip to content

Commit a8a56ba

Browse files
authored
Merge pull request #3098 from mminutoli/fix_nixos_bash_issue
Obtain bash path through /usr/bin/env in flow scripts.
2 parents ea71270 + 379c373 commit a8a56ba

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

flow/platforms/sky130ram/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ endif
6666
# Verbosity
6767
OPTS += -v
6868

69-
SHELL ?= /bin/bash
69+
SHELL ?= /usr/bin/env bash
7070
export SHELL
7171
export SHELLOPTS := pipefail
7272

flow/scripts/escape.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
sed -e 's/ /\\ /g' -e 's/(/\\(/g' -e 's/|/\\|/g' -e 's/)/\\)/g'

flow/scripts/flow.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
set -u -eo pipefail
33
mkdir -p $RESULTS_DIR $LOG_DIR $REPORTS_DIR $OBJECTS_DIR
44
echo Running $2.tcl, stage $1

flow/scripts/klayout/src/gen_klayout_files.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
# Bash wrapper script to read PDK files and generate the KLayout layer
44
# properties and technology file used the 6_final step of OpenROAD-flow-scripts

flow/scripts/synth.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
set -u -eo pipefail
33
mkdir -p $RESULTS_DIR $LOG_DIR $REPORTS_DIR $OBJECTS_DIR
44
eval "$TIME_CMD $YOSYS_EXE $YOSYS_FLAGS -c $1" 2>&1 | tee $(realpath $2)

flow/test/openroad.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
set -e
33
# HACK while we're waiting for OpenROAD to be switched to MODULE.bazel
44
# OpenROAD has its own TCL library

flow/test/test_delta_debug.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
# deltaDebug.py integration smoke-test, run from ORFS/flow folder.
44
#

flow/test/test_make_issue.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
# make issue smoketest
33
set -ue -o pipefail
44

flow/test/test_outoftree.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
# deltaDebug.py integration smoke-test, run from ORFS/flow folder.
44
#

flow/util/open_plots.sh

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

0 commit comments

Comments
 (0)