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

index 96e982836bf51ef55b51fb061e8e04b6db5c65a1..bd2a7c28e8288cac08e137cc931839ac207ab8ac 100755 (executable)
@@ -18,7 +18,7 @@ VERSION="7.3"
 VERSION="`echo $VERSION_ID | tr -d '.'`"
 
 # Only use packages from Kubic if on Ubuntu 20.04 or below
-if [ "$NAME" = "Ubuntu" ] && (($VERSION <= 2004)); then
+if [ "$NAME" = "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 -
 fi