build.sh nit

Discussion of compilation configuration and issues

build.sh nit

Postby kwanrj » Sat Nov 02, 2013 8:26 pm

This is a very minor bug, but I can't figure out if there is a separate bug tracker...
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. ...
kwanrj
 
Posts: 2
Joined: Sat Nov 02, 2013 7:27 pm

Re: build.sh nit

Postby jjkparker » Mon Nov 04, 2013 8:15 pm

Thanks for the tip. I'll try to get this into our next release.

For the future, we do have a bug tracker: http://bugs.gmatcentral.org. Feel free to create new tickets there!

Thanks.
Joel J. K. Parker
Flight dynamics engineer, GMAT team
http://gmatcentral.org
jjkparker
 
Posts: 617
Joined: Thu Jan 07, 2010 9:48 pm
Location: NASA Goddard Space Flight Center, Greenbelt, MD


Return to Compiling GMAT

Who is online

Users browsing this forum: No registered users and 4 guests

cron