You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running in Docker using Alpine 9 image, the chrome-finder fail by expecting a parameter not available in grep. (See official Chrome puppeter documentation for example image). The current work around is to detect docker/unsupported grep and conditionnaly use chrome-finder (not ideal)
The following code: const chromeFinder = require("chrome-finder"); chromeExecutablePath = chromeFinder();
fail with an exception and console ouput:
`
grep: unrecognized option: R
BusyBox v1.26.2 (2018-05-30 13:51:20 GMT) multi-call binary.
-H Add 'filename:' prefix
-h Do not add 'filename:' prefix
-n Add 'line_no:' prefix
-l Show only names of files that match
-L Show only names of files that don't match
-c Show only count of matching lines
-o Show only the matching part of line
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress open and read errors
-r Recurse
-i Ignore case
-w Match whole words only
-x Match whole lines only
-F PATTERN is a literal (not regexp)
-E PATTERN is an extended regexp
-m N Match up to N times per file
-A N Print N lines of trailing context
-B N Print N lines of leading context
-C N Same as '-A N -B N'
-e PTRN Pattern to match
-f FILE Read pattern from file
`
The text was updated successfully, but these errors were encountered:
some grep versions do not support recursive search, eg: busybox
Because `find` seems to be available on nearly all platforms,
this is used instead to walk the directories and call grep
on each "*.desktop" file.
see: gwuhaolin#14
fix and closegwuhaolin#14
When running in Docker using Alpine 9 image, the chrome-finder fail by expecting a parameter not available in grep. (See official Chrome puppeter documentation for example image). The current work around is to detect docker/unsupported grep and conditionnaly use chrome-finder (not ideal)
The following code:
const chromeFinder = require("chrome-finder"); chromeExecutablePath = chromeFinder();
fail with an exception and console ouput:
`
grep: unrecognized option: R
BusyBox v1.26.2 (2018-05-30 13:51:20 GMT) multi-call binary.
Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
Search for PATTERN in FILEs (or stdin)
`
The text was updated successfully, but these errors were encountered: