From cb4a402c5f2e4490ead4ad5299d2cf3091431da6 Mon Sep 17 00:00:00 2001 From: baconyao Date: Fri, 26 Jul 2024 09:52:21 +0800 Subject: [PATCH] Fix hardcoded strings --- providers/base/bin/check-ubuntu-desktop-recommends.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/base/bin/check-ubuntu-desktop-recommends.sh b/providers/base/bin/check-ubuntu-desktop-recommends.sh index ccbe8d80ad..c81e40699e 100755 --- a/providers/base/bin/check-ubuntu-desktop-recommends.sh +++ b/providers/base/bin/check-ubuntu-desktop-recommends.sh @@ -5,7 +5,7 @@ IFS=$'\n\t' target_package=${1:-ubuntu-desktop} noninstalled=() -target_version="$(dpkg-query --showformat='${Version}' --show ubuntu-desktop)" +target_version="$(dpkg-query --showformat='${Version}' --show "$target_package")" apt_show_ud="$(apt-cache show "${target_package}"="$target_version")" recommends="$(echo "${apt_show_ud}"| grep ^Recommends | head -n 1)" while read -r pkg; do