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
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