]> gitweb.fluxo.info Git - trashman.git/commitdiff
Fix: podman: sh fixes
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 1 Apr 2021 19:53:14 +0000 (16:53 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 1 Apr 2021 19:53:14 +0000 (16:53 -0300)
share/trashman/podman/unix/linux/ubuntu/install

index df96d709fa102aaf81b49c7ccb84605002f8096b..216ed607f85096127a2c1ecc07e317a87b8e67ba 100755 (executable)
@@ -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