oatpp / example-libressl

Example project how-to use oatpp-libressl submodule. HTTPS async server.
https://oatpp.io/
12 stars 12 forks source link

README.md results in syntax error #6

Open dancesWithCycles opened 1 year ago

dancesWithCycles commented 1 year ago

Hi folks, Thank you so much for providing and maintaining this repository.

I installed libressl according to the README.md. That worked out I guess.

According to the README.md I am installing required modules. That results in syntax errors. Please see yourself.

oatpp-example-libressl$ ./utility/install-oatpp-modules.sh 
./utility/install-oatpp-modules.sh: 17: Syntax error: "(" unexpected
oatpp-example-libressl$ ./utility/install-oatpp-modules.sh oatpp
./utility/install-oatpp-modules.sh: 17: Syntax error: "(" unexpected

I appreciate any clue on this matter. Cheers!

dancesWithCycles commented 1 year ago

In this repository I am facing the same syntax error:

oatpp-example-crud$ ./utility/install-oatpp-modules.sh 
./utility/install-oatpp-modules.sh: 17: Syntax error: "(" unexpected
dancesWithCycles commented 1 year ago

Hi folks, you can run the ./utility/install-oatpp-modules.sh script with the bash shell (at least on Debian). The default sh shell in Debian is not working.

bash ./utility/install-oatpp-modules.sh

So, shall we switch from

#!/bin/sh

to

#!/bin/bash

or shall we update the README.md files to remind people to chose the corresponding shell on the development host?

Cheers!