Skip to content

Commit

Permalink
Merge pull request #171 from endlessm/T35668-fix-endless-key-collecti…
Browse files Browse the repository at this point in the history
…on-name-matching

Match selected Endless Key content collections correctly
  • Loading branch information
wjt committed Jan 14, 2025
2 parents 0f344fc + 52175e7 commit cc21f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/image/53-ek-content-preload
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ all_collection_files="${OSTREE_VAR}"/lib/flatpak/app/org.endlessos.Key/current/a
for collection_file in ${all_collection_files}; do
# Check if the file basename stripped off of -0001.json is part of the list
# of collections to be installed.
bn=$(basename ${collection_file})
if [[ "${EIB_ENDLESSKEY_COLLECTIONS}" =~ .*"${bn%-????.json}".* ]] ; then
bn=$(basename "${collection_file%-????.json}")
if [[ " ${EIB_ENDLESSKEY_COLLECTIONS} " =~ [[:space:]]${bn}[[:space:]] ]] ; then
selected_collection_files+=("${collection_file}")
jq -r '.channels[].id' "${collection_file}" >> "${channels_file}"
fi
Expand Down

0 comments on commit cc21f84

Please sign in to comment.