aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-04-01 16:53:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-04-01 16:53:14 -0300
commit9fd0a668f66ad12cdc312fed86512f45cdd3bef4 (patch)
tree71f83488adc5c9b7f25652be88327df116cf26ff
parent3240f34127d529a3e87fcb8290b011a6ad9a015a (diff)
downloadtrashman-9fd0a668f66ad12cdc312fed86512f45cdd3bef4.tar.gz
trashman-9fd0a668f66ad12cdc312fed86512f45cdd3bef4.tar.bz2
Fix: podman: sh fixes
-rwxr-xr-xshare/trashman/podman/unix/linux/ubuntu/install8
1 files changed, 5 insertions, 3 deletions
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