busybox grep has no --include, removed it

Signed-off-by: Stacy Harper <contact@stacyharper.net>
master
Maarten van Gompel 4 years ago committed by Stacy Harper
parent e30aefc253
commit 044e756600
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 2
      scripts/core/sxmo_open.sh

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

Loading…
Cancel
Save