X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=main.cpp;h=4463ff26d4d0e49f2c249c17594ca7340a53337f;hb=e26fd7b3195576b25ffe51253a391b53f412a650;hp=740c8890771f2cf81bf61458b9ee2e970ce60d9d;hpb=9811871585fa6028362c8910bfac18159c286323;p=popboot.git diff --git a/main.cpp b/main.cpp index 740c889..4463ff2 100644 --- a/main.cpp +++ b/main.cpp @@ -39,8 +39,11 @@ int main(int argc, char** argv){ getline(file,effects); getline(file,precond); cout << exec << ":" << effects << ":" << precond << endl; + if (effects == "") continue; actions.push_back(Action(exec, stringToVector(precond), stringToVector(effects))); } Planner p(actions, stringToVector(argv[2]), stringToVector(argv[3])); + + p.execute(); return 0; }