diff options
author | Rahul P | 2022-02-28 14:56:40 +0530 |
---|---|---|
committer | GitHub | 2022-02-28 14:56:40 +0530 |
commit | db198f50b0fbb6ab316775e94d11d0a5a9038526 (patch) | |
tree | 51ecc84fca8394f34ca87b096f305fd0072c7f89 /Ubuntu/install-nghdl.sh | |
parent | 398ecd1b255e2b2c9f63d77a7d38a9231da73edd (diff) | |
parent | b60628553cae464d199ba8f7215c484de6cfc24e (diff) | |
download | nghdl-db198f50b0fbb6ab316775e94d11d0a5a9038526.tar.gz nghdl-db198f50b0fbb6ab316775e94d11d0a5a9038526.tar.bz2 nghdl-db198f50b0fbb6ab316775e94d11d0a5a9038526.zip |
Merge pull request #82 from rahulp13/installersi2.2
Fix apt prompt issue
Diffstat (limited to 'Ubuntu/install-nghdl.sh')
-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 |