auto-updates: fix unique package detection

This commit is contained in:
Lucinda May Phipps 2022-03-31 09:45:47 +01:00 committed by GitHub
parent f36c44e0b3
commit bf4f0708b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ read -r -a _UNIQUE_PACKAGES <<<"$(_get_unique_packages)"
_unique_to_termux() {
local pkg_dir="$1"
# shellcheck disable=2076 # We want literal match not regex.
if [[ "${_UNIQUE_PACKAGES[*]}" =~ "$(basename "${pkg_dir}")" ]]; then
if [[ "${_UNIQUE_PACKAGES[*]}" =~ "\"$(basename "${pkg_dir}")\"" ]]; then
return 0
else
return 1