Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
5+1 committed Jun 23, 2020
1 parent 672bcf9 commit 83accf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int main(int argc, char* argv[])
}
else if(strcmp(type,"ls")==0){
printf(" List: \n\n\n");
system("cd ~/LanGongFile/ && ls -a");
system("cd ~/LanGongFile/ && ls");
printf(" \n\n Load list successfully! \n");
return 0;
}
Expand Down Expand Up @@ -160,7 +160,7 @@ int main(int argc, char* argv[])
}
strcpy(name,argv[2]);
char dobash[1000];
strcpy(dobash,"cd ~/LanGongFile/ && sudo rm -r ");
strcpy(dobash,"cd ~/LanGongFile/ && rm -rf ");
strcat(dobash,name);
system(dobash);
system("echo -n 'Uninstall Packages at ' >> ~/.config/LanFilePackage.log && date -u >> ~/.config/LanFilePackage.log");
Expand Down

0 comments on commit 83accf8

Please sign in to comment.