summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrafa_99 <rafa99@protonmail.com>2020-09-23 20:27:44 +0100
committerrafa_99 <rafa99@protonmail.com>2020-09-23 20:27:44 +0100
commit8974507c7e7351ccb942fc76426160525e693cc8 (patch)
tree9f0329ab49c8409383847efb4f9c29b7f55ef890
parentaec252977e26a59174298b1dfc9ff75e861594a5 (diff)
Fixed Wrong Operator
-rw-r--r--flags.c14
-rw-r--r--utils.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/flags.c b/flags.c
index e103aee..d6b579d 100644
--- a/flags.c
+++ b/flags.c
@@ -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)
diff --git a/utils.c b/utils.c
index c2087e1..65ac047 100644
--- a/utils.c
+++ b/utils.c
@@ -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)
{