From 989df6a284aefca96034881e0773dbffae73596b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 3 Feb 2023 10:26:52 +0100 Subject: [PATCH] SLES: remove unused rootless_pkg_version This variable was introduced in 63fb2060c9436bb3ad4434bdbf55f92824428e8e, but was later refactored in ab0389264936174e064d0fcf3ab39d2ee8d9b976 aligned the installation steps for SLES with the other distros (using the version of the "docker-ce" package itself, as those versions always match). This patch removes the unused rootless_pkg_version variable, and the code to resolve that version. Signed-off-by: Sebastiaan van Stijn --- install.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/install.sh b/install.sh index 163cb78..c8ca315 100755 --- a/install.sh +++ b/install.sh @@ -599,10 +599,6 @@ do_install() { # It's okay for cli_pkg_version to be blank, since older versions don't support a cli package cli_pkg_version="$($sh_c "$search_command")" pkg_version="-$pkg_version" - - search_command="zypper search -s --match-exact 'docker-ce-rootless-extras' | grep '$pkg_pattern' | tail -1 | awk '{print \$6}'" - rootless_pkg_version="$($sh_c "$search_command")" - rootless_pkg_version="-$rootless_pkg_version" fi fi (