Skip to content

Commit dfc89dc

Browse files
committed
[package] check whehter clang-format-18 package exist
1 parent 0afdfff commit dfc89dc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

install_apt_packages.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@ sudo apt-get install -y \
4242
sphinx-common
4343

4444
# Required for code formatting
45-
sudo apt-get install -y \
46-
clang-format-18
45+
if apt-cache search --names-only 'clang-format-18' | grep -q 'clang-format-18'; then
46+
sudo apt-get install -y clang-format-18
47+
else
48+
echo "clang-format-18 not found in apt-cache. Skipping installation."
49+
fi

0 commit comments

Comments
 (0)