You get an output like this:
Code: Select all
Building 01.HelloWorld
./buildAllExamples.sh: 8: pushd: not found
./buildAllExamples.sh: 8: popd: not found
I fixed it by changing the first line of the script to
Code: Select all
#!/bin/bash
Code: Select all
Building 01.HelloWorld
./buildAllExamples.sh: 8: pushd: not found
./buildAllExamples.sh: 8: popd: not found
Code: Select all
#!/bin/bash