Skip to content

Commit

Permalink
Update blogpusher.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
OrdChaos authored Aug 2, 2022
1 parent 6e7ca7a commit d4a40b2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions blogpusher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ using namespace std;

int main(int argc, char** argv){
string commit;
for(int i = 1; i < argc; i++){
commit += argv[i];
if(i != argc - 1){
commit += " ";
if(argc == 1) commit = "Update";
else {
for(int i = 1; i < argc; i++) {
commit += argv[i];
if(i != argc - 1){
commit += " ";
}
}
}
string commitInput = "git commit -m\"" + commit + "\"";
Expand All @@ -20,4 +23,4 @@ int main(int argc, char** argv){
cout<<"==========BEGIN PUSH=========="<<endl;
system("git push origin master");
return 0;
}
}

0 comments on commit d4a40b2

Please sign in to comment.