trimstray / mkchain

Open source tool to help you build a valid SSL certificate chain.
GNU General Public License v3.0
360 stars 53 forks source link

Readlink usage not compatible with macOS #5

Closed p4tpr0 closed 5 years ago

p4tpr0 commented 6 years ago

Current use of command readlink in shell script code is not compatible with macOS:

sample error upon execution: readlink: illegal option -- f usage: readlink [-n] [file ...] /usr/local/bin/sslmerge: line 57: ./../src/settings: No such file or directory /usr/local/bin/sslmerge: line 59: ./../src/helpers: No such file or directory /usr/local/bin/sslmerge: line 61: ./../src/__init__: No such file or directory /usr/local/bin/sslmerge: line 66: __main__: command not found /usr/local/bin/sslmerge: line 68: _exit_: command not found

trimstray commented 6 years ago

Hi!

It's true that there is a problem with readlink on macos and freebsd.

1) I'll check what can be done with it. 2) I added information on what platform it works: Requirements

trimstray commented 6 years ago

greadlink from coreutils package is alternative (tested on FreeBSD).

rebtoor commented 5 years ago

greadlink from coreutils package is alternative (tested on FreeBSD).

Also work on MacOS with greadlink from coreutils (installed via homebrew)

trimstray commented 5 years ago