When running build.sh on Ubuntu 12.04, I got the following message:
- Code: Select all
build.sh: 39: [: false: unexpected operator
Other things broke for me, so I suspected this as a possible root cause. It turns out lines 39 is:
- Code: Select all
if [ $mac == true ]
Looking at the code above and below this, it appears that the "==" should be a single "=". It might also be nice to put '$mac' in double-quotes, as is the case with other comparisons in the script. That is,
- Code: Select all
if [ "$mac" = true ]
Putting in this fix (and optionally the double-quotes) gets rid of the "unexpected operator" message, leaving me to ponder my more serious errors. ...