mirror of
https://github.com/AGWA/git-crypt.git
synced 2025-12-25 20:34:15 -08:00
Add helper to get exit status of command
This commit is contained in:
@@ -316,9 +316,9 @@ int exec_command_with_input (const std::vector<std::string>& command, const char
|
||||
return exit_code;
|
||||
}
|
||||
|
||||
bool successful_exit (int status)
|
||||
int exit_status (int status)
|
||||
{
|
||||
return status == 0;
|
||||
return status;
|
||||
}
|
||||
|
||||
void touch_file (const std::string& filename)
|
||||
|
||||
Reference in New Issue
Block a user