Skip to content

Commit 1d3b468

Browse files
author
Marco Minutoli
committed
Obtain bash path through /usr/bin/env in flow scripts.
Unfortunately, not all systems have bash in /bin. One notable example is nixos. When entering a development shell in nixos, the current version of the scripts will fail complaining that "something is wrong at line 1". The issue is that there is no /bin/bash on NixOS or more generally on the system.
1 parent 0cf17a2 commit 1d3b468

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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/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)

0 commit comments

Comments
 (0)