shell script get function return value