sourceAux="/data00/fact-construction/aux" destAux="/archive/fact/rev_1/aux" sourceRaw="/data03/fact-construction/raw" destRaw="/archive/fact/rev_1/raw" ok="true" if [ -d $sourceAux ] then echo "Source aux: "$sourceAux else echo "Source aux DOES NOT EXIST" ok="false" fi if [ -d $destAux ] then echo "Dest aux: "$destAux else echo "Dest aux DOES NOT EXIST" ok="false" fi if [ -d $sourceRaw ] then echo "Source raw: "$sourceRaw else echo "Source raw DOES NOT EXIST" ok="false" fi if [ -d $destRaw ] then echo "Dest raw: "$destRaw else echo "Dest raw DOES NOT EXIST" ok="false" fi if [ "$ok" == "true" ] then #echo "Here I should be starting both scripts" auxIngest.sh $sourceAux $destAux rawIngest.sh $sourceRaw $destRaw else echo "Something went wrong with folders. Please check them" fi