Bash Save Output Of Function To Variable