google / haskell-trainings

Haskell 101 and 102: slides and codelabs
Apache License 2.0
1.38k stars 110 forks source link

Make the Makefiles also work under /bin/sh. #25

Closed mihaimaruseac closed 2 years ago

mihaimaruseac commented 2 years ago

We were using [[ construct but this is only valid under /bin/bash. In systems where /bin/sh is just a symlink to /bin/bash we did not catch the error. However, Reddit user u/chien-royal identified the error while running the codelab on a different system (MacOS?).

Tested by running /bin/dash and then running make inside this shell.