iI have bash script like below afterthis:
rm ~/sqoop/"$TABLE"/*
rmdir ~/sqoop/"$TABLE"
return $?
After execution this script it returnreturns a value to next process but even though the script run successfully and executing all stages in script completed successfully itit is returning 1, because of.
Because this - the next process is not taking place and if i.
If I remove the return statement the next process going smoothly. this problem came after the Hadoop cluster up gradation which having Ubuntu 14 and new cluster have Ubuntu 16.
rm ~/sqoop/"$TABLE"/* rmdir ~/sqoop/"$TABLE" return $?
Can you please help us to understand what is issue and how the next process is running successfully if remove the return command here and what is impact in production if remove the Return statement?