ocamllabs / 2048-tutorial

OCaml tutorial based on the 2048 game
49 stars 12 forks source link

Use '=', not '==', for string comparison in the build script. #20

Closed yallop closed 10 years ago

yallop commented 10 years ago

It seems that [ "$x" = "y" ] is POSIX and [ "$x" == "y" ] is a bash extension.

dbuenzli commented 10 years ago

Right, sorry. Forgot to run checkbashisms on it.

> checkbashisms build 
possible bashism in build line 22 (should be 'b = a'):
            if [ "$1" == "-b" ]; then
possible bashism in build line 34 (should be 'b = a'):
            if [ "$1" == "-b" ]; then