Bash Set Variable To Output Of Function