Evaluate status

This commit is contained in:
Uwe Seimet 2021-07-16 15:22:27 +02:00
parent 6dfdb1f077
commit 3d8f2c3252

View File

@ -207,8 +207,8 @@ int main(int argc, char* argv[])
// List display only
if (id < 0 && cmd < 0 && type < 0 && file == NULL && list) {
sprintf(buf, "list\n");
SendCommand(buf);
exit(0);
bool status = SendCommand(buf);
exit(status ? 0 : -1);
}
// Check the ID number