Skip to content

Commit 4b398c3

Browse files
SilverSlinky606timiya2333
authored andcommitted
deleted shit mountain
1 parent e70357f commit 4b398c3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

TMBotStart/src/main.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@ int main()
66
{
77
if (access("node_modules", F_OK) != 0)
88
{
9-
char choice;
9+
string choice;
1010
cout << "Requirement Not Found!" << endl;
1111
cout << "Make sure you`re installed node.js and npm!" << endl;
1212
cout << "Do you want to install requirement?(Y/n)" << endl;
1313
cin >> choice;
14-
switch (choice)
14+
if (choice == "n")
1515
{
16-
case 'n':
1716
exit(1);
18-
default:
19-
system("npm i");
2017
}
18+
else
19+
{
20+
cout << "Installing..." << endl;
21+
system("npm i");
22+
};
2123
}
2224
else
2325
{

0 commit comments

Comments
 (0)