Skip to content

Commit 9bcaded

Browse files
committed
install-check-clang-version.sh: Export DEBIAN_FRONTEND instead of prefixing to apt-get
This makes reading the commands a little easier. Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 27d85bd commit 9bcaded

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

distro-clang/install-check-clang-version.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ set -x
66

77
# Debian/Ubuntu
88
if command -v apt-get &>/dev/null; then
9+
export DEBIAN_FRONTEND=noninteractive
10+
911
apt-get update
10-
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
11-
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y clang
12+
apt-get upgrade -y
13+
apt-get install --no-install-recommends -y clang
1214
# Fedora
1315
elif command -v dnf &>/dev/null; then
1416
dnf update -y

0 commit comments

Comments
 (0)