MaikMichel / dbFlow-template

Starter template when using dbFlow
0 stars 0 forks source link

OSX - setup.sh fails with bad substitution #1

Open S-Koell opened 3 years ago

S-Koell commented 3 years ago

Using a MacBook with OSX 11.2.1 Tried it with zsh and bash but I get:

sh .dbFlow/setup.sh generate mydemoname Would you like to have a single or multi scheme app (S/M) [M]: s .dbFlow/setup.sh: line 184: ${db_scheme_type,,}: bad substitution

Versions: zsh 5.8 (x86_64-apple-darwin20.0) GNU bash, version 3.2.57(1)-release (arm64-apple-darwin20)

MaikMichel commented 3 years ago

H Sebastian,

do you see any chance to update bash to version 4.4 or higher on your mac? The error you reported is based on missing functionalities in older bash versions. Have a look at: https://merikan.com/2019/04/upgrade-to-bash-5-in-macos/

Greetinx Maik

S-Koell commented 3 years ago

Thanks for the quick response Maik,

unfortunately it doesn't work either with bash 5.1 :

bash-5.1$ .dbFlow/setup.sh generate FeatureFlagFramework Would you like to have a single or multi scheme app (S/M) [M]: s .dbFlow/setup.sh: line 184: ${db_scheme_type,,}: bad substitution

bash-5.1$ bash -version GNU bash, Version 5.1.8(1)-release (aarch64-apple-darwin20.4.0)

MaikMichel commented 8 months ago

Hi Sebastian, sorry, but I totally lost track of the issue. Does the error still exist? A lot has happened here and there since you reported it...