Closed alanpearce closed 11 years ago
Thanks @alanpearce for the PR.
I agree that vbkick should support systems where bash
is not at /bin/bash
, but use /usr/bin/env bash
not solves all problems. It only moves the location of the problem to different place.
env
utility must be located in /usr/bin/
(It's much more likely to be there than bash but still not specified in POSIX)$HOME/bin/bash
in first place in $PATH)ln -s /usr/local/bin/bash /bin/bash
(people are lazy [a tool should be user friendly] + dealing with multiple symlinks may introduce some vulnerabilities and slow down kickstarting process on the new box)MAIN
There is different way to deal with portability - installation routine. The installer should take care about different OS and allow user's specify/choose shebang and install location. vbkick
and convert_2_scancode.py
need to be auto-generated on-site using Makefile
with the proper (defined by user) head line. It gives the biggest control, flexibility and portability.
I will create separate issue to address the installer (Makefile) changes.
To be consistent head line in convert_2_scancode.py
will be updated as well from #!/usr/bin/env python
to #!/usr/bin/python
.
PS. Did you use vbkick on FreeBSD ?
Close as #2 will be implemented.
I did try to use it on FreeBSD, but I ran into some other issues. I couldn't run it on Mac OSX either. Worked fine on Arch GNU/Linux, however.
@alanpearce thanks for a feedback. Feel free to create another gh issues with some error output about your FreeBSD and Mac OSX problems. We can try solve it.
This is needed to run the script on systems where
bash
is not at/bin/bash
, such as FreeBSD.