Commit 3505814
committed
Make set-max-old-space-size.sh compatible with sh
The . operator defaults to the current shell and
ignores the shebang so in non-bash shells, it is
not bash that will be used, which can result in
the following script failure:
```
> . scripts/set-max-old-space-size.sh && hardhat test
sh: 8: scripts/set-max-old-space-size.sh: [[: not found
```
The shebang could be respected by avoiding sourcing but
a better option is to simply remove the bash dependency
from the script since it is not required.1 parent 441dc14 commit 3505814
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
0 commit comments