From 2922d5b7aa5fd3aee94f6be011d9de1fae4a3a0c Mon Sep 17 00:00:00 2001 From: Jason Shuler Date: Sat, 13 Aug 2022 21:53:45 -0400 Subject: [PATCH] ubuntu_setup.sh detect base ubuntu version for variant distros (#25433) ubuntu_setup detect base version old-commit-hash: 65f230e6f607469d187da0f3d84a2759c48d3711 --- tools/ubuntu_setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/ubuntu_setup.sh b/tools/ubuntu_setup.sh index 379df37ad..863b85371 100755 --- a/tools/ubuntu_setup.sh +++ b/tools/ubuntu_setup.sh @@ -108,7 +108,11 @@ if [ -f "/etc/os-release" ]; then if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1 fi - install_ubuntu_focal_requirements + if [ "$UBUNTU_CODENAME" = "jammy" ]; then + install_ubuntu_jammy_requirements + else + install_ubuntu_focal_requirements + fi esac else echo "No /etc/os-release in the system"