busybox grep has no --include, removed it

Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
Maarten van Gompel 2021-07-11 11:51:46 +02:00 committed by Stacy Harper
parent e30aefc253
commit 044e756600
No known key found for this signature in database
GPG key ID: 5BAC92328B7C5D65

View file

@ -39,7 +39,7 @@ mimeapps_to_desktop_mapping() {
# This will generate the added mapping from all destkop entries in a dir
get_mimeapps_entries_from_desktop_dir() {
for desktop_path in "$1"/*.desktop; do
grep --include "*.desktop" '^MimeType=' "$desktop_path" \
grep '^MimeType=' "$desktop_path" \
| tr ';' '\n' \
| cut -d= -f2 \
| xargs -I{} printf "%s=%s\n" "{}" "$(basename "$desktop_path")"