Skip to content

Adding support for FreeBSD and bash location discovery via env#50

Open
plato79 wants to merge 1 commit intovitasdk:masterfrom
plato79:master
Open

Adding support for FreeBSD and bash location discovery via env#50
plato79 wants to merge 1 commit intovitasdk:masterfrom
plato79:master

Conversation

@plato79
Copy link
Copy Markdown

@plato79 plato79 commented Nov 1, 2019

OSX is FreeBSD based, so I added FreeBSD.

Instead of assuming bash is located in /bin folder, I changed it to autodetect via env command which exists in every linux/freebsd system in /usr/bin folder. This way even if it's installed later to /usr/local/bin etc.. this will correctly find where the bash is.


case "$(uname -s)" in
Darwin*)
Darwin*|FreeBSD*)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is *BSD* also fine (NetBSD, OpenBSD, PC-BSD) ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I tried in FreeNAS and FreeBSD, and it was exactly FreeBSD, so *BSD may be a better solution.

@d3m3vilurr
Copy link
Copy Markdown
Contributor

hm...after the patch, $(get_download_link master osx) part is little weird. maybe we should make(or rename) the built package name with bsd instead osx.

@plato79
Copy link
Copy Markdown
Author

plato79 commented Nov 10, 2019

Actually we need more than that.. The binaries downloaded with osx is not fully compatible with FreeBSD. While OSX is also FreeBSD based the it seems there is enough difference that binaries are not executable on FreeBSD systems.

@d3m3vilurr
Copy link
Copy Markdown
Contributor

yes, a best option is making the package for the bsd version :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants