Bash Save Return Code To Variable