italia / spid-cie-oidc-django

The SPID/CIE OIDC Federation SDK, written in Python
Apache License 2.0
27 stars 28 forks source link

[Bug] substitute patterns in docker-prepare.sh #243

Closed TakahikoKawasaki closed 1 year ago

TakahikoKawasaki commented 1 year ago

Substitute patterns in docker-prepare.sh use backlashes as delimiters, but the default sed on Mac does not allow backslashes to be used as delimiters and emits the following error logs.

$ ~/GitHub/italia/spid-cie-oidc-django$ which sed
/usr/bin/sed
$ ~/GitHub/italia/spid-cie-oidc-django$ bash docker-prepare.sh 
sed: 1: "s\http://127.0.0.1:8000 ...": substitute pattern can not be delimited by newline or backslash
sed: 1: "s\http://127.0.0.1:8000 ...": substitute pattern can not be delimited by newline or backslash
sed: 1: "s\http://127.0.0.1:8000 ...": substitute pattern can not be delimited by newline or backslash
sed: 1: "s\http://127.0.0.1:8000 ...": substitute pattern can not be delimited by newline or backslash
sed: 1: "s\http://127.0.0.1:8000 ...": substitute pattern can not be delimited by newline or backslash
sed: 1: "s\http://127.0.0.1:8000 ...": substitute pattern can not be delimited by newline or backslash
peppelinux commented 1 year ago

Closed by https://github.com/italia/spid-cie-oidc-django/pull/242

thank you Taka!