Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Setting default variable value in bash

FOO="${VARIABLE:=default}"  # If variable not set or null, set it to default.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Setting #default #variable #bash
ADD COMMENT
Topic
Name
5+3 =