Skip to content

Commit

Permalink
Fix hardcoded strings (BugFix) (#1370)
Browse files Browse the repository at this point in the history
Fix hardcoded strings
  • Loading branch information
baconYao authored and pedro-avalos committed Jul 29, 2024
1 parent 59e1572 commit a3a03ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/base/bin/check-ubuntu-desktop-recommends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3a03ac

Please sign in to comment.