do not override existing shell variable

This commit is contained in:
Miodrag Milanovic 2024-02-12 12:58:13 +01:00
parent ae7daf99f4
commit 353ccc9e58
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ generate_target() {
# $ generate_ys_test ys_file [yosys_args]
generate_ys_test() {
ys_file=$1
yosys_args=${2:-}
generate_target "$ys_file" "\"$YOSYS_BASEDIR/yosys\" -ql ${ys_file%.*}.log $yosys_args $ys_file"
yosys_args_=${2:-}
generate_target "$ys_file" "\"$YOSYS_BASEDIR/yosys\" -ql ${ys_file%.*}.log $yosys_args_ $ys_file"
}
# $ generate_bash_test bash_file