Closed minektur closed 8 years ago
Funny, as I have been testing it under Busybox's sh
which isn't bash
either. Thought this would be most conservative of all, but I've been proven wrong. Thanks for the report, @minektur !
Does #4 help in that matter?
it solves the immediate problem yes.
On chromeos, some flavors of debian/ubuntu and others, /bin/sh is actually dash shell, and is only POSIX-ly compatible. There are a few things in brewstrap-0.1.sh that rely on bash features (command line parsing of --fixpaths for instance).
You probably want to explicitly call bash, or change your [ tests to be dash compatible...
I added set -x as 2nd line of script to demonstrate:
You can read all about dash vs bash and how to convert here:
https://wiki.ubuntu.com/DashAsBinSh
In this particular instance changing
to
(e.g. just changing == to =) should do the trick