added going back to main repo directory after mod installation

This commit is contained in:
Phitherek 2012-09-26 20:36:22 +02:00
parent 12029593b8
commit cfa2c9cf52

5
3m.cpp
View File

@ -1560,6 +1560,11 @@ if(argv[1][1] == 'S') {
instpath = sinstpath.str();
tmprid.path = instpath;
repoinfo.push_back(tmprid);
ret = chdir("..");
if(ret == -1) {
cerr << "Could not chdir one level up: " << strerror(errno) << endl;
return EXIT_FAILURE;
}
}
cout << actionv[i].name << " installed successfully!" << endl;
}