File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,11 +11,20 @@ struct FirstTimeInstaller
1111 static bool makeFirstTimeFile;
1212 static bool downloadGitInstaller;
1313
14+ static std::string pkgMgr;
15+
1416 static void Start ()
1517 {
18+ GetVariables ();
1619 Introduction ();
1720 }
1821
22+ static void GetVariables ()
23+ {
24+ pkgMgr = Linux::GetPkgManagerName ();
25+ Files::ClearConsole ();
26+ }
27+
1928 static void Introduction ()
2029 {
2130 makeFirstTimeFile = false ;
@@ -220,17 +229,16 @@ struct FirstTimeInstaller
220229 }
221230 else if (Application::IsPlatform (Application::Platform::Linux))
222231 {
223- std::string pkgMgr = Linux::GetPkgManagerName ();
224- std::cout << " A: Since you're on Linux, and it uses " + pkgMgr << " \n " ;
232+ std::cout << " A: Since you're on Linux, and it uses " + FirstTimeInstaller::pkgMgr << " \n " ;
225233 std::cout << " as the package manager, it'll install all of these packages:" << " \n " ;
226234 std::cout << " \n " ;
227235
228- if (pkgMgr == " APT" )
236+ if (FirstTimeInstaller:: pkgMgr == " APT" )
229237 {
230238 for (auto i : Linux::APTPackageList ())
231239 std::cout << " - " << i << " \n " ;
232240 }
233- else if (pkgMgr == " Pacman" )
241+ else if (FirstTimeInstaller:: pkgMgr == " Pacman" )
234242 {
235243 for (auto i : Linux::PacmanPackageList ())
236244 std::cout << " - " << i << " \n " ;
You can’t perform that action at this time.
0 commit comments