bash defualt if var no specified code example
Example: assign default value in shell script
FOO=${VARIABLE:-default} # If variable not set or null, use default.
FOO=${VARIABLE:-default} # If variable not set or null, use default.