Bash Set Variable To Exit Code Of Command