From 9fd0a668f66ad12cdc312fed86512f45cdd3bef4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 1 Apr 2021 16:53:14 -0300 Subject: Fix: podman: sh fixes --- share/trashman/podman/unix/linux/ubuntu/install | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'share/trashman') diff --git a/share/trashman/podman/unix/linux/ubuntu/install b/share/trashman/podman/unix/linux/ubuntu/install index df96d70..216ed60 100755 --- a/share/trashman/podman/unix/linux/ubuntu/install +++ b/share/trashman/podman/unix/linux/ubuntu/install @@ -18,9 +18,11 @@ VERSION="7.3" 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 -- cgit v1.2.3