diff options
author | rahulp13 | 2022-02-23 15:43:21 +0530 |
---|---|---|
committer | rahulp13 | 2022-02-23 15:43:21 +0530 |
commit | 13d462fe909948ce1588197207b2b79c681ad367 (patch) | |
tree | affefaf6d5690d1c304b61a1073717c19bbb4da7 | |
parent | 398ecd1b255e2b2c9f63d77a7d38a9231da73edd (diff) | |
download | nghdl-13d462fe909948ce1588197207b2b79c681ad367.tar.gz nghdl-13d462fe909948ce1588197207b2b79c681ad367.tar.bz2 nghdl-13d462fe909948ce1588197207b2b79c681ad367.zip |
Do not prompt for choice in apt tool
-rwxr-xr-x | Ubuntu/install-nghdl.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ubuntu/install-nghdl.sh b/Ubuntu/install-nghdl.sh index 84f0cc8..2c6bbdf 100755 --- a/Ubuntu/install-nghdl.sh +++ b/Ubuntu/install-nghdl.sh @@ -54,7 +54,7 @@ function installDependency sudo apt install -y llvm-${llvm_version} llvm-${llvm_version}-dev echo "Installing Clang.........................................." - sudo apt-get install -y clang + sudo apt install -y clang echo "Installing Zlib1g-dev....................................." sudo apt install -y zlib1g-dev @@ -72,11 +72,11 @@ function installDependency sudo apt install -y libxaw7-dev - echo "Installing $verilator dependencies........................" - if [[ -n "$(which apt-get 2> /dev/null)" ]] + echo "Installing dependencies for $verilator...................." + if [[ -n "$(which apt 2> /dev/null)" ]] then # Ubuntu - sudo apt-get install make autoconf g++ flex bison + sudo apt install -y make autoconf g++ flex bison else [[ -n "$(which yum 2> /dev/null)" ]] # Ubuntu sudo yum install make autoconf flex bison which -y |