diff options
author | rafa_99 <rafa99@protonmail.com> | 2020-09-23 20:27:44 +0100 |
---|---|---|
committer | rafa_99 <rafa99@protonmail.com> | 2020-09-23 20:27:44 +0100 |
commit | 8974507c7e7351ccb942fc76426160525e693cc8 (patch) | |
tree | 9f0329ab49c8409383847efb4f9c29b7f55ef890 | |
parent | aec252977e26a59174298b1dfc9ff75e861594a5 (diff) |
Fixed Wrong Operator
-rw-r--r-- | flags.c | 14 | ||||
-rw-r--r-- | utils.c | 2 |
2 files changed, 8 insertions, 8 deletions
@@ -65,13 +65,13 @@ void cleanPackages(int os) void help() { printf("PKG Options:\n" - "c - removes orphans and cleans the package cache\n" - "h - display this message\n" - "i - installs selected packages\n" - "q - display installed packages\n" - "r - remove a selected package\n" - "s - look up for a package in the available repositories\n" - "u - updates repos and packages\n\n"); + "c - removes orphans and cleans the package cache\n" + "h - display this message\n" + "i - installs selected packages\n" + "q - display installed packages\n" + "r - remove a selected package\n" + "s - look up for a package in the available repositories\n" + "u - updates repos and packages\n\n"); } void installPackages(int os, char *packages) @@ -11,7 +11,7 @@ int checkIfFileExists(char *path) int detectOsType() { int exists = ERROR; - for ( int i = 0; i < ENUMSIZE || exists == ERROR; i++ ) + for ( int i = 0; i < ENUMSIZE && exists == ERROR; i++ ) { switch (i) { |