mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Use command -v
rather than which
This commit is contained in:
parent
7e8f7f4c59
commit
69a5dea89e
|
@ -12,7 +12,7 @@ done
|
||||||
shift "$((OPTIND-1))"
|
shift "$((OPTIND-1))"
|
||||||
|
|
||||||
# check for Icarus Verilog
|
# 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."
|
echo "$0: Error: Icarus Verilog 'iverilog' not found."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -12,7 +12,7 @@ done
|
||||||
shift "$((OPTIND-1))"
|
shift "$((OPTIND-1))"
|
||||||
|
|
||||||
# check for Icarus Verilog
|
# 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."
|
echo "$0: Error: Icarus Verilog 'iverilog' not found."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue