I just wanna to implement simple if & then
statement in my Script, but in two part. If the first one (primary) became successful then only the second one will be get execute, else it will be get Exit.
Like -
# script_1.sh
function()
{
sub_function()
{
#cmd
}
}
#script_2.sh source script_1.sh function sub_function
How it could be possible ?