diff options
author | Emily <vcs@emily.moe> | 2019-09-03 00:57:32 +0100 |
---|---|---|
committer | Emily <vcs@emily.moe> | 2019-09-03 00:57:32 +0100 |
commit | 69a5dea89ef8cbf8bcc1b761518738623e028e38 (patch) | |
tree | 3fa605f7aeabce8685e3e905bd71e0578068089d /tests/simple/run-test.sh | |
parent | 7e8f7f4c59c96897159d32771d0c7179c5474281 (diff) | |
download | yosys-69a5dea89ef8cbf8bcc1b761518738623e028e38.tar.gz yosys-69a5dea89ef8cbf8bcc1b761518738623e028e38.tar.bz2 yosys-69a5dea89ef8cbf8bcc1b761518738623e028e38.zip |
Use `command -v` rather than `which`
Diffstat (limited to 'tests/simple/run-test.sh')
-rwxr-xr-x | tests/simple/run-test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/simple/run-test.sh b/tests/simple/run-test.sh index 967ac49f2..f20fd0d30 100755 --- a/tests/simple/run-test.sh +++ b/tests/simple/run-test.sh @@ -12,7 +12,7 @@ done shift "$((OPTIND-1))" # check for Icarus Verilog -if ! which iverilog > /dev/null ; then +if ! command -v iverilog > /dev/null ; then echo "$0: Error: Icarus Verilog 'iverilog' not found." exit 1 fi |