mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2026-05-08 01:41:46 +00:00
Show error when zip command is not found by linux
This commit is contained in:
parent
cc71b31b09
commit
dbf81349ff
1 changed files with 3 additions and 1 deletions
|
|
@ -973,7 +973,9 @@ bool create_mod_zip(const std::filesystem::path& output_dir, const ModConfig& co
|
||||||
}
|
}
|
||||||
else if (pid == 0) {
|
else if (pid == 0) {
|
||||||
// This is the child process, so exec zip with the arguments.
|
// This is the child process, so exec zip with the arguments.
|
||||||
execvp(arg_pointers[0], arg_pointers.data());
|
if (execvp(arg_pointers[0], arg_pointers.data()) == -1) {
|
||||||
|
fmt::print(stderr, "Failed to run \"zip\" ({})\n", errno);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// This is the parent process, so wait for the child process to complete and check its exit code.
|
// This is the parent process, so wait for the child process to complete and check its exit code.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue