shell script call function return value