run if then a function call bash code example
Example 1: bash if with function call
#don't use [[ (or [) when running a command and checking the result code
if is_magento_root_dir $SOURCE_DIR ;then
#code here
fi
Example 2: bash if call function
#don't use [[ (or [) when running a command and checking the result code
if is_magento_root_dir $SOURCE_DIR ;
then
#code here
fi