Closed jakubdibala closed 1 year ago
@petrzpav I second this one issue, the problem is still persistent on macOS Catalina. I dug a bit deeper and pinpointed the issue to parse_version
function:
https://github.com/InternetGuru/omgf/blob/fd9dc6ea6d2337c60585003c7316d262f8e82313/omgf#L361-L363
Running this directly against Bash or Git gives an empty result:
$ bash --version | sed -n 's/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p'
$
But when I use GNU Sed, installed from Homebrew, it works:
$ bash --version | gsed -n 's/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p'
9.5.0
$
So the solution here is to either fix the regex to work with BSD sed, or to check for alias for gsed
and use it if it is available; I think the latter option would be easier since GNU Sed is already a prerequisite and you won't need to fix other regexps.
It's been a while. The whole tool has been reimplemented. This issue should be fixed. I'm sure there will be more regarding mac compatibility. Thank you for your interest!
When I run
omgf --what-now
, omgf displays this error:I tried preinstalled Bash (3.2.57):
I tried upgrade via homebrew to Bash (4.4.23):
I have installed all required dependencies. Even when I comment out requirements checking code, I got
omgf[error]: Generic error occurred (see REPORTING BUGS).