Fixed scope error
This commit is contained in:
parent
f76c0c7c28
commit
a42b192b3c
@ -71,6 +71,8 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
|
||||
std::string input="";
|
||||
|
||||
if (!std::filesystem::exists("/etc/cowtool/disabled/install_"+name+".sh")) {
|
||||
std::cout << "First time installation! Watching you! Type 'manure' to cancel, 'exit' to save!" << std::endl;
|
||||
chdir("/sources/cowtool/buildspace/");
|
||||
@ -80,7 +82,7 @@ int main(int argc, char* argv[]) {
|
||||
out.open("/etc/cowtool/disabled/install_"+name+".sh", std::ios::app);
|
||||
|
||||
out << "cd /sources/cowtool/buildspace/" << std::endl;
|
||||
std::string input="";
|
||||
|
||||
while (input!="manure" && input!="exit"){
|
||||
|
||||
out << input << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user