From a42b192b3c7f3007537e541121ad73b47320e06c Mon Sep 17 00:00:00 2001 From: COW_ILLUMINATI Date: Wed, 5 Jun 2024 20:38:44 -0400 Subject: [PATCH] Fixed scope error --- src/cowtool.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cowtool.cpp b/src/cowtool.cpp index abb8c63..8f4b164 100644 --- a/src/cowtool.cpp +++ b/src/cowtool.cpp @@ -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;