Basics

Variables

You must omit the $ when assigning a variable, but must use include it when referencing.
So this example:

1
2
3
4
5
6
isLive=${1:-false};
dbName="localDbName";
if [[ isLive == true ]]
then
    dbName="liveDbName"
fi
Should look like this
1
2
3
4
5
6
isLive="${1:-false}";
dbName="localDbName";
if [[ "$isLive" == "true" ]]
then
    dbName="liveDbName"
fi