bash overridable variables in scripts

Developer from somewhere

This script will show default when ran without any arguments:

myvar=${myvar:=default}
echo $myvar

and running it like this:

myvar=different ./script.sh

will show different