Skip to content
Snippets Groups Projects
Commit 8d298e93 authored by ajf5's avatar ajf5
Browse files

bug fix

parent 54d7a028
No related branches found
No related tags found
No related merge requests found
......@@ -166,10 +166,11 @@ int main(int argc, char *argv[])
cout << "USAGE: maple maple_exe num_maples sdfs_intermediate_dir sdfs_src_dir" << endl;
continue;
}
string testCommand = "./" + cmdLineInput[1] + " > /dev/null 2>&1";
if (system(testCommand.c_str()) == -1) {
cout << "[MAPLE] " << cmdLineInput[1] << " does not exist locally, " << testCommand << " failed." << endl;
continue;
if (FILE *file = fopen(cmdLineInput[1].c_str(), "r")) {
fclose(file);
} else {
cout << "[MAPLE] " << cmdLineInput[1] << " does not exist locally" << endl;
continue;
}
if (!node->isBlackout){
string msg = cmdLineInput[1] + "," + cmdLineInput[2] + "," + cmdLineInput[3] + "," + cmdLineInput[4] + "\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment