Q:

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
1
#don't use [[ (or [) when running a command and checking the result code
if is_magento_root_dir $SOURCE_DIR ;
then
#code here
fi
0

New to Communities?

Join the community