VERSION="`echo $VERSION_ID | tr -d '.'`"
# Only use packages from Kubic if on Ubuntu 20.04 or below
-if test "$NAME" -eq "Ubuntu" && test $VERSION -le 2004; then
- echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:testing.list
- curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
+if [ "$NAME" = "Ubuntu" ]; then
+ if [ $VERSION -le 2004 ]; then
+ echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:testing.list
+ curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
+ fi
fi
# Install podman