diff --git a/bin/install_prerequisites_ubuntu.sh b/bin/install_prerequisites_ubuntu.sh index ed5d27fb193..c7377e95dde 100755 --- a/bin/install_prerequisites_ubuntu.sh +++ b/bin/install_prerequisites_ubuntu.sh @@ -3,12 +3,12 @@ set -Eeuo pipefail echo "----- install prerequisite packages -----" export DEBIAN_FRONTEND=noninteractive -if ! command -V sudo ; then +if ! command -V sudo >/dev/null 2>&1 ; then apt-get update - apt-get -y install sudo + DEBIAN_FRONTEND=noninteractive apt-get -y install sudo fi sudo apt-get update -sudo apt-get -y install \ +sudo DEBIAN_FRONTEND=noninteractive apt-get -y install \ bash \ expect \ curl \