From 13d462fe909948ce1588197207b2b79c681ad367 Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Wed, 23 Feb 2022 15:43:21 +0530 Subject: Do not prompt for choice in apt tool --- Ubuntu/install-nghdl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Ubuntu') 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 -- cgit