Fixed scope error

This commit is contained in:
COW_ILLUMINATI 2024-06-05 20:38:44 -04:00
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")) { 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; std::cout << "First time installation! Watching you! Type 'manure' to cancel, 'exit' to save!" << std::endl;
chdir("/sources/cowtool/buildspace/"); 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.open("/etc/cowtool/disabled/install_"+name+".sh", std::ios::app);
out << "cd /sources/cowtool/buildspace/" << std::endl; out << "cd /sources/cowtool/buildspace/" << std::endl;
std::string input="";
while (input!="manure" && input!="exit"){ while (input!="manure" && input!="exit"){
out << input << std::endl; out << input << std::endl;