ubuntu_setup.sh detect base ubuntu version for variant distros (#25433)

ubuntu_setup detect base version
old-commit-hash: 65f230e6f607469d187da0f3d84a2759c48d3711
This commit is contained in:
Jason Shuler
2022-08-13 21:53:45 -04:00
committed by GitHub
parent 7560dd6973
commit 2922d5b7aa

View File

@@ -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"