bash auto assign default value to variable code example
Example: Setting default variable value in bash
FOO="${VARIABLE:=default}" # If variable not set or null, set it to default.
FOO="${VARIABLE:=default}" # If variable not set or null, set it to default.